微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

centos – 删除包时PREUN scriptlet中的yum错误

试图卸载zarafa邮件服务器.

我使用安装的yum list来查看已安装的软件包.

之后我用yum erase zarafa *

它拿起所有包但返回:

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
好像以某种方式yum缓存数据和rpm数据库彼此不同步我想.
尝试运行下一个命令:
su -c 'yum clean all && rpm --rebuilddb'
su -c 'package-cleanup --problems'

然后运行:

su -c 'yum erase zarafa*'

编辑#1:
尝试运行下一个命令:

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

如果这不起作用,试试这个:

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native
centos6.5下postgres-XC集群安装与配置
CentOS 6使用openssl搭建根CA
CentOS6.6中安装VNC server
CentOS下更新Python最新版本