banner
xingli

xingli

猫娘爱好者

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

Could not get lock /var/lib/dpkg/lock-frontend 解决#

在安装软件包时如果出现 Could not get lock /var/lib/dpkg/lock-frontend,说明之前使用 apt 时出现异常,没有正常关闭,还在运行。
image
解决,使用 ps 和 grep 查找 apt 的 pid, 并使用 kill 杀死掉。
ps afx|grep apt
kill id
image
手动删除 /var/lib/dpkg/lock

rm -rf /var/lib/dpkg/lock
rm /var/lib/dpkg/lock-frontend
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.