慕容的工作随笔

慕容的工作随笔

记录学习和工作

Another app is currently holding the yum lock解决方法 转

转自:http://blog.itpub.net/29812844/viewspace-1988770/

用yum安装包有时候会提示

code
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 128 M RSS (439 MB VSZ)
Started: Fri Aug 28 08:08:31 2015 - 48:25 ago
State  : Sleeping, pid: 3462

解决方法:

code
<strong><span style="color: #ff0000;">rm -f /var/run/yum.pid</span></strong>

然后重新执行yum就可以了

永久禁止该错误

code
[root@oracle pluginconf.d]# cd /etc/yum/pluginconf.d/
[root@oracle pluginconf.d]# ls
product-id.conf  refresh-packagekit.conf  rhnplugin.conf  security.conf  subscription-manager.conf
[root@oracle pluginconf.d]# vim refresh-packagekit.conf
[main]
enabled=0  --将原来的1改成0即可

评论 (0)

还没有评论,来做第一个吧。

发表评论

提交后需管理员审核通过后显示