解决 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
To improve is to change, to be perfect is to change often.