天天看點

yum提示Another app is currently holding the yum lock

使用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對付不了它,那怎麼辦呢?

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

繼續閱讀