Linux

cache lock: Could not get lock

2022年3月19日

Ubuntu更新的时候出现以下错误

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2227 (unattended-upgr)

解决办法

杀死进程

sudo kill 2227

运行

dpkg --configure -a

再次进行 apt upgrade 就可以了

You Might Also Like

No Comments

Leave a Reply

%d 博主赞过: