after 12.04 upgrade: can't log in although password is correct

try removing the Xauhority file and reboot.

for me that was

rm ~/.Xauthority

reboot


Answer from anonymous user:

I have exactly the same problem and I fixed it by the following solution (found here):

  • Press CTRL+ALT+F1
  • Log in with you user name and password

  • Run the following command: sudo chown -R $USER:$USER $HOME

  • Press CTRL+ALT+F7

  • Try to log in