1. 程式人生 > >Linux工作筆記026---Centos7.3 yum提示Another app is currently holding the yum lock; waiting for it to exit.

Linux工作筆記026---Centos7.3 yum提示Another app is currently holding the yum lock; waiting for it to exit.

這個問題是由於,上午通過堡壘機,裝著,然後到飯點了,去吃飯,

吃飯回來,連結超時,然後裝著的東西就卡在那了...

出現了這個問題

使用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在鎖定狀態中。 
已經有一個yum程序在運行了,使用kill幹掉它:

# kill -s 9 25960
# 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>

很遺憾,kill對付不了它,那怎麼辦呢?

可以通過強制關掉yum程序:

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