My system recently had a problem, where I could not update the system because it kept on saying :

> 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?

So I followed these steps and removed the lock file. After a reboot, I cannot login. Its stuck in loop. I have already tried many answers on this forum like changing ownership of .Xauthority and even removing it. But nothing works, its still stuck in a loop.

Help me!

  • You can try access it by command line (ALT + 1, ...., ALT + 6 ), login as your user, if you can do it, then it's a window manager issue, create another user, then diff between your user home dir, and the fresh user and copy over the defaul files. Also before doing that, make a backup of your home dir with rsync, rsync -avz /home/yourUser/ /some/other/path/ – bistoco Aug 4 '16 at 5:32
  • I have two questions: 1) the "steps" you mention is a post with 14 answers(!). Which of the steps did you follow? What is the exact commandline you used to remove the lock? 2) What exactly do you mean with "its stuck in loop". Please say exactly what you see on screen. – user23573 Aug 4 '16 at 5:45
  • 1. I followed the first answer. I deleted the lock file. 2. Stuck in loop, like if I enter my password at the login purple page, it wont login to home, it just flashes and again login page appears. – PoisonAlien Aug 4 '16 at 5:50
  • just FYI, error message before you removed the lock file that said Could not lock blah..blah.. is another process using it, it means some program use administration priviledge task in background (usually you couldnt access sudo apt update, upgrade, etc). just wait a few seconds or minutes until the background task finished, then try again. just don't panic yet. – adadion Aug 4 '16 at 5:56
  • and for login loop, you could try this accepted answer – adadion Aug 4 '16 at 6:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.