UbuntuE: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
EE: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),是否有其他进程正占用它?@TOC
解决方法:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
如果还无法解决,报错:E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.
再输入:
sudo dpkg --configure -a
sudo rm /var/lib/dpkg/lock-frontend
输入命令后,不再出现报错,如图: