kesalahan yum di skrip PREUN saat menghapus paket


16

Mencoba mencopot zarafaserver email.

Saya menggunakan yum list installeduntuk melihat paket yang sudah diinstal.

Setelah itu saya gunakan yum erase zarafa*

Itu mengambil semua paket tetapi kembali:

Error in PREUN scriptlet in rpm package zarafa-dagent
Error in PREUN scriptlet in rpm package zarafa-gateway
Error in PREUN scriptlet in rpm package zarafa-monitor
Error in PREUN scriptlet in rpm package zarafa-server
Error in PREUN scriptlet in rpm package zarafa-spooler
Error in PREUN scriptlet in rpm package zarafa-ical
zarafa-ical-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-ical-7.1.9-1.el6.i686                                                                                                                                                1/6 
zarafa-spooler-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-spooler-7.1.9-1.el6.i686                                                                                                                                             2/6 
zarafa-server-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-server-7.1.9-1.el6.i686                                                                                                                                              3/6 
zarafa-monitor-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-monitor-7.1.9-1.el6.i686                                                                                                                                             4/6 
zarafa-gateway-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-gateway-7.1.9-1.el6.i686                                                                                                                                             5/6 
zarafa-dagent-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-dagent-7.1.9-1.el6.i686                                                                                                                                              6/6 

Failed:
  zarafa-dagent.i686 0:7.1.9-1.el6      zarafa-gateway.i686 0:7.1.9-1.el6     zarafa-ical.i686 0:7.1.9-1.el6     zarafa-monitor.i686 0:7.1.9-1.el6     zarafa-server.i686 0:7.1.9-1.el6    
  zarafa-spooler.i686 0:7.1.9-1.el6  

1
mencari Error in PREUN scriptlet in rpm package ddclient dan datang ke sini - Terima kasih.
Felipe Alvarez

Jawaban:


46

Sepertinya entah bagaimana data cache yum dan database rpm keluar dari sinkronisasi satu sama lain kurasa. Coba jalankan perintah berikut:

su -c 'yum clean all && rpm --rebuilddb'
su -c 'package-cleanup --problems'

Lalu lari:

su -c 'yum erase zarafa*'

Sunting # 1: Coba jalankan perintah berikut:

# su -c 'yum --setopt=tsflags=noscripts remove zarafa*'

Jika itu tidak berhasil, coba ini:

# su -c 'rpm -e --noscripts zarafa*'

Selamat mencoba, tetapi masih gagal
Krauser

Ya, persis sama
Krauser

4
Dan perintah dari Edit # 1 saya?
Itai Ganot

--setopt = tsflags = noscripts bagus, terima kasih!
andrej

5
yum --setopt=tsflags=noscripts remove <pkgname>bekerja untuk saya
Felipe Alvarez

8

Saya melakukan rpm -ql <packagename>untuk melihat paket isi aslinya.

secara manual menghapus file yang tersisa.

ran yum dengan flag noscripts seperti dijelaskan di atas, sehingga skrip tidak gagal.

yum --setopt=tsflags=noscripts remove <packagename>
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.