《Ubuntu — Could not get lock /var/lib/dpkg/lock-frontend解决》
在安装软件包时如果出现Could not get lock /var/lib/dpkg/lock-frontend,说明之前使用apt时出现异常,没有正常关闭,还在运行。
root@ubuntu:/home/zcxd/3399# apt-get install liblz4-tool 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?
解决方法:
ps afx|grep apt
将这些进程全部删除。再apt-get
如果仍然出现,需要手动删除 /var/lib/dpkg/lock即可。
rm -rf /var/lib/dpkg/lock