您的位置:首页 > 移动开发

Another app is currently holding the yum lock; waiting for it to exit...

2016-12-29 16:05 405 查看
[root@localhost ~]# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 2542.
Another app is currently holding the yum lock; waiting for it to exit...
在更换yum源的过程中出现这个报错,可能是系统自动升级正在运行,yum在锁定状态。

[root@localhost ~]# ps -aux | grep yum
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root 2542 0.0 0.0 0 0 ? Z 22:18 0:01 [yumBackend.py] <defunct>
root 23606 0.0 0.0 103244 836 pts/1 S+ 23:55 0:00 grep yum
在这时使用kill并不能生效
这是可以强制关闭yum里的进程
[root@localhost ~]# rm -f /var/run/yum.pid
这时继续执行就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  security running waiting
相关文章推荐