ubuntu E: Could not get lock /var/lib/apt/lists/lock 异常信息
转载:https://www.cnblogs.com/qq952693358/p/6537846.html
在更换软件源时遇到了如下问题:
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