通过终端安装程序sudo apt-get install xxx时出错:
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
出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
在终端中敲入以下两句
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
相关文章
- 12-27sudo安装软件的时候出现Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
- 12-27E: Could not get lock /var/lib/dpkg/lock - open 11: Resource temporarily unavailable 解决办法
- 12-27E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
- 12-27解决apt-get /var/lib/dpkg/lock-frontend 问题
- 12-27解决:E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
- 12-27Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.
- 12-27apt-get报错could not get lock /var/lib/dpkg/lock -open等
- 12-27Could not get lock /var/lib/dpkg/lock-frontend解决
- 12-27Ubuntu中Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend)问题的解决
- 12-27ubuntu :Could not get lock /var/lib/dpkg/lock-frontend解决