yum错误“Error in PREUN scriptlet in rpm package ”

    打算通过yum安装软件,发展之前有软件残骸。使用yum remove也无效,使用rpm -e也无法删除这个软件包(这个软件包已经损坏)。

错误信息:
Running Transaction
Error in PREUN scriptlet in rpm package hadoop-hdfs-namenode
hadoop-hdfs-namenode-2.0.0+1475-1.cdh4.4.0.p0.23.el6.x86_64 was supposed to be removed but is not!

Failed:
hadoop-hdfs-namenode.x86_64 0:2.0.0+1475-1.cdh4.4.0.p0.23.el6

Complete!

解决:

删除rpm包的时候不调用卸载脚本:
sudo rpm -e hadoop-hdfs-namenode.x86_64 0:2.0.0+1475-1.cdh4.4.0.p0.23.el6 --noscripts

PS. 我使用" yum --setopt=tsflags=noscripts remove hadoop-hdfs-namenode.x86_64 0:2.0.0+1475-1.cdh4.4.0.p0.23.el6" 这个命令卸载没有生效。

--end

(未生效)
yum --setopt=tsflags=noscripts remove hadoop-hdfs-namenode.x86_64 0:2.0.0+1475-1.cdh4.4.0.p0.23.el6

猜你喜欢

转载自heipark.iteye.com/blog/2028788