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.