美文网首页
apt-get失败

apt-get失败

作者: 默写年华Antifragile | 来源:发表于2018-01-01 17:33 被阅读4次

现象:

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? 

解决方案:
https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
我选择了其中最危险但最简单的一个做法:删除系统lock文件不过还好,成功了

This should be used as last resort. If you use this carelessly you can end up with a broken system. Please try the before doing this.

You can delete the lock file with the following command:

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

You may also need to delete the lock file in the cache directory

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

After that, try opening Synaptic again.

相关文章

网友评论

      本文标题:apt-get失败

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