📌  相关文章
📜  dpkg:错误:dpkg 前端锁被另一个进程锁定 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:19.594000             🧑  作者: Mango

代码示例2
First, find out the id of the process that is holding the lock file:

lsof /var/lib/dpkg/lock-frontend

The above command will give you the PID of the processes using the lock files. Use this PID to kill the process:

sudo kill -9 PID

Now you can remove the lock and reconfigure dpkg:

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