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

运维之家

 找回密码
 注册
搜索
查看: 4839|回复: 0

Another app is currently holding the yum lock

[复制链接]
dirtysea 发表于 2010-6-25 15:24:19 | 显示全部楼层 |阅读模式
问题解决: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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|Archiver|运维之家

GMT+8, 2024-4-20 02:03 , Processed in 0.143336 second(s), 14 queries .

Powered by Dirtysea

© 2008-2020 Dirtysea.com.

快速回复 返回顶部 返回列表