当前位置: 代码迷 >> 综合 >> E: could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporary unavailable)
  详细解决方案

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

热度:92   发布时间:2023-12-18 11:53:31.0

E: could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporary unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it

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

  相关解决方案