Ubuntu安裝軟件-命令

當我的Ubuntu  install某個東西時,給出下面提示

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it?

刪除鎖定文件,執行以下命令,行了

sudo rm /var/lib/dpkg/lock

sudo rm /var/lib/dpkg/lock-frontend

 

安裝vim

apt-get install vim-gtk
//注意:用apt-get install vim可能會失敗

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章