首页 > 移动平台 > 详细

Centos Another app is currently holding the yum lock

时间:2015-01-27 23:04:42      阅读:259      评论:0      收藏:0      [点我收藏+]

yum命令用ctrl+z命令中断后,再运行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...

解决方案:

rm -f /var/run/yum.pid

/sbin/service yum-updatesd restart

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

   yum-updatesd上系统自带的一个提供系统更新的服务,安装文件也叫做yum-updatesd,这个服务默认是自动启动的(init 5),因为系统只允许一个更新进程在运行,所以他运行的时候会自动给yum加锁,这就导致了开机后不能手动进行yum了。

 

Centos Another app is currently holding the yum lock

原文:http://www.cnblogs.com/lzxianren/p/4254059.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!