i am using ubuntu 11.10 and i once i logged in and the screen flashed for a sec and came back to the same screen it is happening again and again. i put the ubuntu cd and almost reinstalled it while i got this thought "lets try again" i tried again and luckly it came. i immediately came here without another log off and asked you guys. how do i correct it such that i wont be having problems in future?????
Thanks Ryan McClure!! I had the same logging in problem and it worked for me!!
I had the same problem as rakshith after when ubuntu hung-up while using firefox.I tried many times, but the same log-in screen flashed again and again. After reading this post, i tried Ctrl+Alt+F1 and deleted the .Xauthority file, rebooted it and my next log-in succesfully brought up the GUI.
I also was returned to login screen, but for me it was xorg configuration issue. Here is the solution:
I was able to run Xfce manager. Then i run from terminal or alt+f2:
go to 'X Server Display Configuration', click 'Reset' button, then 'Save to X Configuration file' In new window uncheck 'merge..' option and click 'save' button.
This happens when X runs into an error in the course of executing its startup scripts. In my case, the startup script was
/etc/X11/Xsession. It used
sh as its chosen shell to interpret the commands startup scripts.
sh corresponds to
dash on Ubuntu 12.04. It didn't recognize some bash-specific commands and crashed.
Ideally, there would be some sort of error indication in the UI that would let the user know what has happened. See this bug for more context.
~/.xsession-errors tipped me off and I was able to fix the offending line soon after. Do you see a similarly named file in your home directory? You may have to log into the shell using
Ctrl-Option-F1 like the others have suggested.