随笔

记录,分享,然后享受生活。

0%

ubuntu16.04使用apt install报错

当我在ubuntu16.04的操作系统上使用apt install安装软件包时,终端给出了下面的提示:

1
2
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去安装软件了

1
2
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock