[687]无法获得锁 varlibdpkglock-frontend - open

mac2026-04-09  3

在输入sudo apt-get update后发现终端提示:

E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

解决方案一:

ps -ef | grep apt

然后执行:sudo kill 进程号

解决方案二:

有一种情况是

sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock

但我遇到的情况是:E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock-frontend

来源:https://blog.csdn.net/qq_36910634/article/details/90512126

最新回复(0)