E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
答案1
经验法则 -
切勿使用Ctrlz来终止/停止任何进程,而应使用Ctrlc。
您可能已停止某些 apt-get 进程的运行,或者该进程仍在其他窗口/终端中运行。
您可以使用以下命令删除锁 -
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
然后尝试 -
apt-get update