Saturday, October 6, 2007

Error like E:Unable to check......

If you are tired with the error like

E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
on updating or anything like arvind@lovely:~$ sudo apt-get update

then do the following

1-) sudo chmod 777 /var/lib/apt/lists/

then delete or cut and paste the lock file in another place and then try

2-) sudo apt-get update

there will error free updating or any processing...........

1 comment:

Jitendra Harlalka said...

This is not a proper method to do so. First of all, it is hardly ever a good idea to change access permission of system files.
And secondly, such messages are encountered when you are trying to use two different instances of installation. Like using synaptic and apt-get from console both at the same time. This is done with the purpose of maintaining proper dependency. Moving or removing lock folder can cause unwanted complication in terms of dependency.
So, the best bet is wait till one of the installation instance is complete and then only start the other.