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."
sudo apt purge nvidia-*
reboot, open tty1 thensudo dpkg --configure -a
andsudo 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