寂夜清风 发表于 2013-10-16 21:42

[ZT]CentOS yum下提示Another app is currently holding the yum lock

运行yum时,出现:
Existing lock /var/run/yum.pid: another copy is running as pid 3046.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...


根据提示,原来是系统进程已经有一个update在运行了。在进程里查看下:ps -ef | grep update
通过kill杀掉这个进程,可杀掉之后,错误依旧。原来在/var/run目录下,还有yum这个进程ID,需要将这个进程id文件强制删除掉,同时重启下yum更新服务,


输入

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

Stopping yum-updatesd: [ OK ]
Starting yum-updatesd: [ OK ]

好了,一切正常了
页: [1]
查看完整版本: [ZT]CentOS yum下提示Another app is currently holding the yum lock