解决:E: Could not get lock /var/lib/dpkg/lock

Posted pan-xi-yi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决:E: Could not get lock /var/lib/dpkg/lock相关的知识,希望对你有一定的参考价值。

问题:

ubuntu16 执行 sudo apt install aria2 命令时,提示如下错误

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/lib/dpkg/lock
# 如果有出现 /var/lib/list/lock 删除对应的锁定文件即可

以上是关于解决:E: Could not get lock /var/lib/dpkg/lock的主要内容,如果未能解决你的问题,请参考以下文章

apt-get update 出现E: Could not get lock /var/lib/apt/lists/lock问题的解决

Could not get lock /var/lib/dpkg/lock的解决方法

关于Ubuntu中E: Could not get lock /var/lib/dpkg/lock - open的三种解决方案

ubuntu常见错误--Could not get lock /var/lib/dpkg/lock解决

解决Could not get lock /var/cache/apt/archives/lock

ubuntu常见错误--Could not get lock /var/lib/dpkg/lock解决