当前一个 dpkg 安装操作尚未完成时异常退出,导致重新安装时,报错:
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?
参考:https://www.cnblogs.com/dakewei/p/10491278.html
删除即可:
sudo rm /var/lib/dpkg/lock-frontend && sudo rm /var/lib/dpkg/lock
然后继续,报错:
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/
删除即可:
sudo rm -rf /var/cache/apt/archives/lock