使用yum安裝計劃任務功能,結果提示:app
# 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幹掉它:code
# 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進程:it
#rm -f /var/run/yum.pid
而後就可使用yum了。ast