今天在Ubuntu 8.04上更新了一下更新源。
更新完更新源之后,想对更新一下,在终端中输入 sudo apt-get update 但是这个命令似乎不起作用了,没法更新---
终端显示显示为
E: 无法获得锁 /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: 无法对状态列表目录加锁
于是上网寻求解决方案,一搜很快找到了解决方案:删除/var/lib/apt/lists/lock 文件,具体命令是 sudo rm /var/lib/apt/lists/lock
删除lock 文件后再在终端中输入 sudo apt-get update 回车,更新正常开始。(运行管理员命令需使用 sudo Ubuntu默认掩藏root用户)
今天更新Ubuntu花了我差不多50分钟的时间,实在是慢啊。我用的是以下的更新源,不知有没有更快的更新源?
CODE:deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse