红联Linux门户
Linux帮助

linux卸载和安装文件失败的解决

发布时间:2008-08-27 21:39:06来源:红联作者:CoDi
[root@NEC-IA32-03 ft]# rpm -e xxxx

ERROR: yyyy is running.
error: %preun(xxx.i386) scriptlet failed, exit status 1

通过ps -ef|grep yyyy

发现程序yyyy并未在进程列表里面

restart后也还是有相同问题。

解决方案:rpm 使用--noscripts参数。

参照rpm的man文件:

--noscripts
--nopreun
--nopostun
 Don't execute the scriptlet of the same name. The --noscripts option during package erase is equivalent to
--nopreun --nopostun
 and turns off the execution of the corresponding %preun, and %postun scriptlet(s).

估计使用--nopreun也可以解决。
文章评论

共有 0 条评论