遇到 E: Unable to acquire the dpkg frontend lock 這麼辦!!!

有時在使用 sudo  apt-get install 命令安裝軟件時,可能報錯如下:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

可以用如下命令試着刪除鎖定文件:

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

 

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