解决Could not get lock /var/cache/apt/archives/lock

在ubuntu apt-get upgrade的时候,遇到:

E: Could not get lock /var/cache/

apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory

解决办法如下:

sudo rm -rf /var/cache/apt/archives/lock
sudo apt-get update

然后apt-get就恢复正常了。

posted @ 2011-01-17 22:53  飞林沙  阅读(14714)  评论(0编辑  收藏  举报