找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 705|回复: 0

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

[复制链接]
发表于 2013-10-16 21:42 | 显示全部楼层 |阅读模式
运行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 ]

好了,一切正常了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-11-17 11:36 , Processed in 0.289439 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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