Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 12.04 on my machine, and after a shut down and a restart I haven't been able to log into the GUI, after entering my password, it switches back to the GUI and does not accept it.

I've tried the following:

  • Ctrl+Alt+F1, login via tty1 - worked fine, so the password and user works
  • tried to remove the .Xauthority file - does not exist
  • tried to restart the lightdm - no change, still cannot log in
  • tried to install the gdm, but no apt-get command works, it fails to connect to the required web address
  • tried the sudo chown -R $user:$user /home command, still cannot log in

Do you have any suggestions what can I do?

share|improve this question
you mean login loop. – Avinash Raj Jan 2 '14 at 9:14
try this or this – Avinash Raj Jan 2 '14 at 9:18
None of them worked :( – meszar.imola Jan 2 '14 at 9:36
Please post the logs from /var/log/lightdm/. – falconer Jan 2 '14 at 11:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.