E: Could not get lock /var/lib/dpkg/lock-frontend

1. 问题详细提示如下:

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?

2. 如何解决这种问题呢?

  2.1 首先查看是否有apt-get这个程序在运行

  ps aux|grep apt-get

  2.2 如果发现存在这样的程序在运行那么就kill掉,否则执行2.3

  2.3 直接删除锁文件

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

  sudo rm /var/lib/dpkg/lock

原文地址:https://www.cnblogs.com/long5683/p/12059110.html