美文网首页
Linux常见的错误

Linux常见的错误

作者: 张氏小毛驴 | 来源:发表于2022-04-16 17:54 被阅读0次

1. apt-get:Could not get lock /var/lib/dpkg/lock

使用apt-get install xxx时会报错:

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 /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

相关文章

网友评论

      本文标题:Linux常见的错误

      本文链接:https://www.haomeiwen.com/subject/fdrayftx.html