当前位置: 代码迷 >> 综合 >> sudo dpkg 报错 E: Could not get lock /var/lib/dpkg/lock-frontend
  详细解决方案

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

热度:10   发布时间:2023-12-15 16:39:13.0

报错:

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 8888 (aptd) - open (11: Resource temporarily unavailable)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

不要使用rm方式删除lock,否则可能导致系统问题。人家提示里说了

$ sudo kill -9 8888 # 8888是上述提示中提到的进程PID
  相关解决方案