E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)
warning:
这篇文章距离上次修改已过651天,其中的内容可能已经有所变动。
在Ubuntu install某个东西时,给出下面提示
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it?
在大部分情况下,问题的原因在于其它的程序如系统的自动更新等正在使用apt-get进程,被锁定了,所以解决方法也就是将这一进程关闭,最简单的方法就是直接删除锁定文件。
sudo rm -rf /var/lib/dpkg/lock-frontend
sudo rm -rf /var/lib/dpkg/lock