Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

The login and Unity Greeter is working. However, if I try to log-in - in a matter of seconds, it would return to the login screen.
This happened when I tried to install a package and I restarted my computer.

I also tried to uninstall, install, re-install, upgrade the lightdm, gdm and gnome.

I installed/reinstalled Ubuntu Desktop/Cinnamon/Gnome3 as well, to try and see if it would work. But it is still the same and I can see the login-lockscreen.

In a matter of seconds, I'll be back to the log-in screen.

share|improve this question
Does opening a guest session work? – Béné Dec 25 '12 at 11:18
"This happened when I tried to install a package" - What package did you install? – gertvdijk Dec 25 '12 at 12:02

At the login screen, use ctrl-alt-f1 to get to a tty login. Login, then delete ~/.Xauthority . If the X server did not shut down properly during the crash, the orphaned lock file is preventing you from starting X.

share|improve this answer

Your Answer


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

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