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
posted @ 2019-01-15 14:17  youngliu91  阅读(798)  评论(0编辑  收藏  举报