E: Could not get lock /var/lib/dpkg/lock E: Unable to lock the administration directory (/var/lib/d

Posted GeoWin_CAU

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了E: Could not get lock /var/lib/dpkg/lock E: Unable to lock the administration directory (/var/lib/d相关的知识,希望对你有一定的参考价值。

(cubeenv) ubuntu@ubuntu:~$ sudo apt-get remove python2.7
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?


(cubeenv) ubuntu@ubuntu:~$ ps -A|grep apt
   892 ?        00:00:00 apt.systemd.dai
  2516 ?        00:00:00 aptd

(cubeenv) ubuntu@ubuntu:~$ sudo kill -9 892

杀死就好了!!!!!!!!!!!!!!!!!!!!!

以上是关于E: Could not get lock /var/lib/dpkg/lock E: Unable to lock the administration directory (/var/lib/d的主要内容,如果未能解决你的问题,请参考以下文章

E:could not get lock /var/lib/dpkg/lock -ope

apt-get update 出现E: Could not get lock /var/lib/apt/lists/lock问题的解决

apt-get update 出现E: Could not get lock /var/lib/apt/lists/lock问题的解决

E: Could not get lock /var/lib/dpkg/lock E: Unable to lock the administration directory (/var/lib/d

E: Could not get lock /var/lib/dpkg/lock E: Unable to lock the administration directory (/var/lib/d

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)