有時在使用 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