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.
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12
Thanks 🙂
View CommentView Commentworked like a charm
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Thanks so much. Magical solution
View CommentView CommentOpera/9.80 (Windows NT 5.1; U; tr) Presto/2.7.62 Version/11.01
This is really… magical solution… THX
View CommentView CommentMozilla/5.0 (X11; U; Linux i686; en-IN) AppleWebKit/533.3 (KHTML, like Gecko) rekonq Safari/533.3
This was the only solution I found that worked. (I had to be sudo though.)
Thanks!
View CommentView CommentMozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.22) Gecko/20110905 Ubuntu/10.10 (maverick) Firefox/3.6.22
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 🙂
View CommentView CommentThanks again
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
tanks.
View CommentView Commentit’s work carefully.
Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Hey, Thanx for the solution. Worked brilliantly
View CommentView CommentMozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
lol….max…..we are badly need of this…..thank u soooooooooo much……….
View CommentView CommentMozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/9.10 (karmic) Firefox/3.6.17
maxxxxa… THANKS
View CommentView CommentMozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
🙂
View CommentView CommentMozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10
thanks
View CommentView CommentMozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0
thanks ….it works fine
View CommentView CommentMozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
thanks.. it works
View CommentView CommentMozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.3 (KHTML, like Gecko) rekonq Safari/533.3
I have tried the above commonds and I am getting the following messagerm: cannot remove `/var/lib/dpkg/lock’: Permission denied
View CommentView Commentwhy plzzzzzzzzzzzzzz
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.7.62 Version/11.00
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
View CommentView CommentGeorgi
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10
Thank you Kiss
View CommentView CommentMozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Yeah! *-* This is the only solution that worked! 🙂
View CommentView CommentMozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
This is helping me on 12.04…
View CommentView CommentThanks for sharing….
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19
many thanks
View CommentView Commentuseful also on 12.04
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
thx for feedback 🙂
best
View CommentView Comment