测试之路交流

恢复/var/cache/apt/archives中的.deb

上一篇 / 下一篇  2011-01-11 20:54:06 / 个人分类:linux

无意中删除/var/cache/apt/archives中的libc.6-2.11.1-oubuntu7.6-i386.deb

恢复如下:

:~$ sudo apt-get clean
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/lib/dpkg/lock


:~$ sudo apt-get update

:~$ /var/cache/apt/archives$ ls

  找到libc6_2.11.1-0ubuntu7.6_i386.deb


参考

在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就恢复正常了。



TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar