在Ubuntu中安装软件时,经常会遇到类似如下问题:
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
还有时,会遇到如下问题:
Unable to lock the administration directory (/var/lib/dpkg/)
解决办法:
sudo rm /var/lib/dpkg/lock
参见:
Unable to lock the administration directory (/var/lib/dpkg/)解决办法_「已注销」的博客-CSDN博客