Fork me on GitHub

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

1.使用yum安装计划任务提示:

# yum -y install vixie-cron
Loaded 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...

可能是系统自动升级正在运行,yum在锁定状态中。

2.通过强制关掉yum进程:

#rm -f /var/run/yum.pid

 然后就可以使用yum了。

 

posted @ 2020-12-21 10:59  moxiyang  阅读(88)  评论(0)    收藏  举报