天天看點

Another app is currently holding the yum lock; waiting for it to exit

     昨天用virtualbox虛拟了2台centos,發現預設沒有安裝vim,是以就準備安裝vim,結果我輸入如下指令時,出現了如題的異常:

Another app is currently holding the yum lock; waiting for it to exit

yum install vim-x11 vim-common vim-enhanced vim-minimal  

    結果提示異常:

Another app is currently holding the yum lock; waiting for it to exit

   意思是yum目前正被其他程式程序占用了,解決辦法就是殺掉程序了,輸入下面的指令即可:

Another app is currently holding the yum lock; waiting for it to exit

rm -f /var/run/yum.pid  

    然後再次輸入vim安裝指令即可,

Another app is currently holding the yum lock; waiting for it to exit

    你會看到,已經在自動下載下傳vim依賴的其他rpm啦,耐心等待即可!中途會出現幾個需要你确認的提示,如:

   is this ok [y/n] 

   輸入y回車即可.

Another app is currently holding the yum lock; waiting for it to exit

    如果你最終看到complete提示語的時候,則表明你的vim已經安裝成功了.最後你可以随便找個檔案測試下vim是否可用來驗證vim安裝成功了,如圖:

Another app is currently holding the yum lock; waiting for it to exit

轉載:http://iamyida.iteye.com/blog/2253728

繼續閱讀