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 !
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 閱讀(435) 評論(0) 編輯 收藏 所屬分類: Linux