yum提示Another app is currently holding the yum lock; waiting for it to exit...
微wx笑
2022-01-26【操作系统】
3146
5
0关键字:
yum
使用yum安装计划任务功能,结果提示:# yum -y install vixie-cronLoaded plugins: fastestmirror, refresh-packagekit, securityExisting lock /var/run/yum.pid: another cop
使用yum安装计划任务功能,结果提示:
1 2 | # yum -y install vixie-cronLoaded plugins: fastestmirror, refresh-packagekit, security Existing lock /var/run/yum.pid: another copy is running as pid 25960.Another app is currently holding the yum lock; waiting for it to exit...1234 |
可能是系统自动升级正在运行,yum在锁定状态中。
已经有一个yum进程在运行了,使用kill干掉它:
1 2 | # kill -s 9 25960# ps aux|grep yumroot 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum root 25960 0.0 0.0 0 0 ? Z Sep19 0:01 [yumBackend.py] <defunct>1234 |
很遗憾,kill对付不了它,那怎么办呢?
可以通过强制关掉yum进程:
1 | #rm -f /var/run/yum.pid1 |
然后就可以使用yum了。
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/system/2022-01-26/985.html