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