The solution for "Could not get lock /var/lib/apt/lists/lock - open"

    In Linux, you always wanna to use command: sudo apt-get update to update source list.
    But if one of terminal doesn't finish updating, and then you execute another same command : sudo apt-get update,
it will has the error message like the following :
Error output:
    alicus@ubuntu:~$ sudo apt-get update
    E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the list directory

The solution is :    
    Open a new  terminal console, execute command like this : sudo rm /var/cache/apt/archives/lock ( it is that has been locked ).
    
    After that, you are allowed to execute sudo apt-get update again.

    Good luck to you !

posted on 2012-11-03 22:51 Alicus 阅读(417) 评论(0)  编辑  收藏 所属分类: Linux


只有注册用户登录后才能发表评论。


网站导航:
 
<2012年11月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

导航

统计

常用链接

留言簿

随笔分类

随笔档案

文章分类

相册

Organization

Personal

搜索

最新评论

阅读排行榜

评论排行榜