服务器维护,服务器代维,安全设置,漏洞扫描,入侵检测服务

dirtysea 发表于 2010-6-25 15:24:19

Another app is currently holding the yum lock

问题解决:Another app is currently holding the yum lock; waiting for it to exit...

运行yum update的时候如果用Ctrl + C强制退出,再次运行yum的时候有如下错误:

Existing lock /var/run/yum.pid: another copy is running as pid 3053.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS ( 82 MB VSZ)
Started: Sun Jan 24 16:11:53 2010 - 14:44 ago
State : Sleeping, pid: 3053


解决办法:




1、rm -f /var/run/yum.pid
2、/sbin/service yum-updatesd restart








默认情况下kill向该进程发送的信号是SIGTERM,该信号会非常友好地(gracefully)等待进程的自动退出,所以一般不会达到立即杀死进程的目的,如果要立即杀死进程可以加上-9或者是-SIGKILL信号。例如:kill -SIGKILL 1234
页: [1]
查看完整版本: Another app is currently holding the yum lock