版權聲明:本文為 testcs_dn(微wx笑) 原創文章,非商用自由轉載-保持署名-注明出處,謝謝。 https://blog.csdn.net/testcs_dn/article/details/48711805
使用yum安裝計劃任務功能,結果提示:
# yum -y install vixie-cronLoaded plugins: fastestmirror, refresh-packagekit, securityExisting lock /var/run/yum.pid: anothercopyisrunningaspid25960.Another appiscurrently holdingtheyum lock; waitingforittoexit...
可是系統自動更新正在運作,yum在鎖定狀态中。
已經有一個yum程序在運作了,使用kill幹掉它:
# kill -s 9 25960# ps aux|grep yumroot67440.00.0103260900pts/1S+14:590:00grep yumroot259600.00.000? Z Sep190:01[yumBackend.py]
很遺憾,kill對付不了它,那怎麼辦呢?
可以通過強制關掉yum程序:
#rm-f/var/run/yum.pid
然後就可以使用yum了。