关于使用apt时出现如下问题的解决方案 Could not get lock /var/lib/dpkg/lock-frontend - open

关于使用apt时出现如下问题的解决方案
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?

出现此类问题是由于后台的apt线程还在运行,使用如下命令查看后台apt线程:
ps -A | grep apt
将相应的线程杀死:
sudo kill 线程id

如若还出现如下的问题:
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/lib/dpkg/lock-frontend 将相应的锁文件删除

问题解决。

你可能感兴趣的:(linux)