解决 E: Could not get lock /var/lib/apt/lists/lock

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

在更换软件源时遇到了如下问题:

sudo apt-get update

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

表明当前有某个进程正在apt-get,然而我并没有使用任何命令,于是需要kill掉进程。

解决方法是:

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

2017.3.12

    原文作者:Wasdns
    原文地址: https://www.cnblogs.com/qq952693358/p/6537846.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞