分类: 云计算
2015-05-12 15:23:27
[root@localhost user]q yum list
Existing lock /var/run/yum.pid: another copy is running as pid 3807.
Another app is currently holding the yum lock; waiting for it to exit...
遇到开机以后使用yum命令不成功,系统提示Another app is currently holding the yum lock; waiting for it toexit..”字面意思是说另外一个程序给yum加了锁,要等到 yum-updatesd 程序退出以后才可以进行
yum-updatesd是系统自带的一个提供系统更新的服务,安装文件也叫做yum-updatesd,这个服务默认是自动启动的(init 5),他运行的时候会自动给yum加锁,这就导致了开机后不能手动进行yum了。
解决的办法很简单:停止这个系统服务。
可能是系统自动升级正在运行,所以yum被锁定了。
可以通过执行rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了