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


今天没事搞了两个虚机玩玩,但是安装软件的时候出现错误,如下:

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

# 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在锁定状态中。 

已经有一个yum进程在运行了,目前使用kill杀了进程:

# kill -s 9 *****
# ps aux|grep yum
root 16744 0.0 0.0 1032 900 pts/1 S+ 09:19   0:00 grep yum
root 55960 0.0 0.0 0 0 ? Z Sep19 0:01 [yumBackend.py] <defunct>
kill不了,那怎么办呢?

可以通过强制关掉yum进程:

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

然后就可以使用yum了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM