![无法在软件中心添加或更新软件,](https://linux22.com/image/844447/%E6%97%A0%E6%B3%95%E5%9C%A8%E8%BD%AF%E4%BB%B6%E4%B8%AD%E5%BF%83%E6%B7%BB%E5%8A%A0%E6%88%96%E6%9B%B4%E6%96%B0%E8%BD%AF%E4%BB%B6%EF%BC%8C.png)
软件中心有问题。它说取消但什么也不做。
我明白了
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
我尝试了硬重启,但问题仍然存在。感谢您的帮助
答案1
你可以试试
sudo killall apt-get
如果这不起作用,请尝试手动移除锁:
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
sudo apt-get update