蔡妈看看

我们不是代码的搬运工,我们只生产代码

Could not open lock file/var/lib/dpkg/lock的解决发方法

Could not open lock file/var/lib/dpkg/lock的解决发方法

错误提示:
E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

解决办法:
sudo rm -rf /var/lib/dpkg/lock

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

sudo apt-get update

然后运行sudo dpkg –configure -a重新配置

点赞

发表评论