Could not get lock /var/lib/apt/lists/lock
执行:
apt-get update
出现
Could not get lock /var/lib/apt/lists/lock
解决办法:
查询与apt相关的进程
ps -e | grep apt
结果:
6362 ? 00:00:00 apt
6934 ? 00:00:00 apt-get
7368 ? 00:00:00 synaptic
杀死进程:
sudo killall apt
sudo killall apt-get
sudo killall synaptic