You’ve probably encountered the error:
“E: Could not get lock /var/lib/apt/lists/lock – open (11: Resource temporarily unavailable)” After executing:
debian:~# 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
There are plenty of reasons which might have led you into this shitty situation, anyways the solution is:
debian:~# killall -9 apt-get aptitude
debian:~# rm -f /var/lib/apt/lists/lock
killall -9 apt-get aptitude might not be really necessary, if there are no hanged apt-get or aptitude processes, however I show it heresince sometimes, it might be the problem cause.
If you further or beforehand get the error:
,br /> E: Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Then you will have to also delete the /var/lib/dpkg/lock.
debian:~# rm -f /var/lib/dpkg/lock
Hopefully this should be enough for you to solve your apt-get update issues.




Thanks 🙂
worked like a charm
Thanks so much. Magical solution
This is really… magical solution… THX
This was the only solution I found that worked. (I had to be sudo though.)
Thanks!
Thanks very much, I have Ubuntu 10.10 and worked me (the first command didn’t worked me) but when I put the remove, like a magic 🙂
Thanks again
tanks.
it’s work carefully.
Hey, Thanx for the solution. Worked brilliantly
lol….max…..we are badly need of this…..thank u soooooooooo much……….
maxxxxa… THANKS
🙂
thanks
thanks ….it works fine
thanks.. it works
I have tried the above commonds and I am getting the following messagerm: cannot remove `/var/lib/dpkg/lock’: Permission denied
why plzzzzzzzzzzzzzz
Hi Mehdavi,
What Linux distribution are you running? Did you tried everything described in the article, are you 100% sure
/var/lib/dpkg/lock is not existing.
best
Georgi
Thank you Kiss
Yeah! *-* This is the only solution that worked! 🙂
This is helping me on 12.04…
Thanks for sharing….
many thanks
useful also on 12.04
thx for feedback 🙂
best