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

文章转自

yum 下载东西突然卡主了,我直接ctrl+c退出,然后再次下载时候出现

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

解决:


 

方法一、

1)查询进程

# ps aux|grep yum
root      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>

2)删除进程

# kill -s 9 进程id

方法二、

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

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

 

posted @ 2018-08-29 13:02  帅LOVE俊  阅读(147)  评论(0编辑  收藏  举报