一、問題原因:
在運(yùn)行yum 相關(guān)命令“yum remove”的時候,不知道怎么回事無法進(jìn)行下載安裝,報出 Another app is currently holding the yum lock; waiting for it to exit...?的錯誤提示。
二、環(huán)境:
centos7 Linux
三、解決問題:
1、分析:報錯顯示/var/run/yum.pid 已被鎖定,pid為3347。
?Another app is currently holding the yum lock. 意為另外一個應(yīng)用正在鎖住進(jìn)程鎖。??????
waiting?for?it?to?exit....?意為該應(yīng)用等待解鎖
[root@localhost ~]# yum remove `rpm -qa | egrep 'qemu|virt|KVM'` -y
已加載插件:fastestmirror, langpacks
/var/run/yum.pid 已被鎖定,PID 為 3347 的另一個程序正在運(yùn)行。
Another app is currently holding the yum lock; waiting for it to exit...
另一個應(yīng)用程序是:PackageKit
內(nèi)存:292 M RSS (713 MB VSZ)
已啟動: Wed Feb 1 15:57:25 2023 - 27:07之前
狀態(tài) :睡眠中,進(jìn)程ID:3347
Another app is currently holding the yum lock; waiting for it to exit...
......
2、處理
使用kill -9 把提示進(jìn)程殺掉,這樣就可以了,可以執(zhí)行yum命令了。
[root@localhost run]# kill -9 3347
?如果,上述操作還不能解決,可以使用下面的命令
killall -9 yum
假如還是無法解決,繼續(xù)執(zhí)行
rm -f /var/run/yum.pid?
然后執(zhí)行更新yum
yum -y update
最后確保yum-updatesd已經(jīng)啟動
/etc/init.d/yum-updatesd status文章來源:http://www.zghlxwxcb.cn/news/detail-616157.html
/etc/init.d/yum-updatesd start文章來源地址http://www.zghlxwxcb.cn/news/detail-616157.html
到了這里,關(guān)于報錯:Another app is currently holding yum lock的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!