This question already has an answer here:

Today I upgraded to Ubuntu 17.04. I get to the login page and type my password correctly, then the sign in message disappears, it stays for a few seconds, then returns and asks me to type the password again.

I am sure I am entering the password correctly since when I tried entering a wrong password, the computer displayed "Wrong password. Try again."

marked as duplicate by karel, Seth Apr 14 '17 at 4:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Like Dolan said check the caps lock. What you have is likely a very common error, probably the most common on askubuntu. This command has gotten me past that same error on a fresh install with 3 different computers and is harmless if it does not work (open the tty1 bash before login with ctrl+alt+F1 and enter your login and password, then input this command):

sudo dpkg --configure -a

This will configure any pending packages which you might need in this case to get past the login screen. I've had to enter that same code at the tty1 on all of my fresh Ubuntu installs before I could login. Then go ahead and do

sudo service lightdm restart

to get you to the login screen again.

  • If you know that a question has been asked before, please flag the new question as a duplicate of the original question, and don't post an answer on the new question. This helps keep all the info together on the original question. Thanks! :) – wjandrea Apr 13 '17 at 18:17
  • The answer provided in that thread is incorrect. My two step method is much more short and to the point, and gets the job done just as well... I have never tested the answer in that thread whatsoever. – Emandudeguy Apr 13 '17 at 18:24
  • Sorry, forgot to clarify. You should post this answer on the original question, instead of the duplicate question. – wjandrea Apr 13 '17 at 18:26
  • 1
    It shows over 30 answers in that thread, all which will accomplish the same thing as what I just said. At this rate I might as well delete the post. But everyone makes it too complicated. At most we're dealing with a typical 3 step sudo apt purge nvidia-* reboot, open tty1 then sudo dpkg --configure -a and sudo service lightdm restart . It seems to me the community associates longer codes with being better or more effective, a perfect example being that thread right there. – Emandudeguy Apr 13 '17 at 18:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.