报错:E: Could not get lock /var/lib/dpkg/lock-frontend - open
安装某些包时报错:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
解决方法
删除lock
1.进入lock所在的目录
cd /var/lib/dpkg/
2.列出该目录下所有文件
ls
3.删除所有lock
sudo rm lock
sudo rm lock-frontend