问题

今天玩ubuntu发现以下报错:

dpkg was interrupted, you must manually run sudo dpkg –configure -a to correct the problem

 

解决

sudo rm /var/lib/apt/lists/lock

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

cd /var/lib/dpkg/updates

sudo rm *

sudo apt-get update

 
或者杀掉apt进程,参考我另一篇博客。

ubuntu could not get lock /var/lib/dpkg/lock 解决方法 - eryoung2 - 博客园

posted on 2022-08-15 15:02  eryoung2  阅读(146)  评论(0编辑  收藏  举报