ubuntu 11.10 中的更新问题

ubuntu 11.10 中的更新问题

我正在使用sudo apt-get update命令进行更新。更新 Ubuntu 时显示:

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

在终端中运行以下命令来删除锁。

sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock

然后你就可以跑了,

sudo apt-get update命令。

相关内容