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...相关的知识,希望能为你提供帮助。
使用yum安装计划任务功能,结果提示: 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...

文章图片

 
可能是系统自动升级正在运行,yum在锁定状态中。 
已经有一个yum进程在运行了,使用kill干掉它:
[root@f16 wwwroot]# ps aux|grep yum
root32510.00.2 1398008 21840 pts/0TJun290:00 /usr/bin/python /usr/bin/yum install -y vim
root171390.00.2 307712 19064 pts/0T10:440:00 /usr/bin/python /usr/bin/yum -y install lrzsz
root171560.00.0 103168692 pts/0D+10:480:00 grep yum
[root@f16 wwwroot]# kill -s 9 3251


 
如果,kill对付不了它,那怎么办呢?
可以通过强制关掉yum进程:
#rm -f /var/run/yum.pid

然后就可以使用yum了。
【Another app is currently holding the yum lock; waiting for it to exit...】 

    推荐阅读