I have Ubuntu 14.04 installed in my PC. It was working just fine but now, at the time of login, when I enter my password, Screen goes blank and again the login page is displayed. However if password is incorrect, message is prompted. What could be done in this case?
Asked
Active
Viewed 110 times
0
-
2possible duplicate of http://askubuntu.com/questions/223501/ubuntu-gets-stuck-in-a-login-loop – Olimjon Jan 07 '16 at 07:32
-
Possible duplicate of How do I reset a lost administrative password? – DnrDevil Jan 07 '16 at 10:36
1 Answers
1
When this happens to me, it is usually because I have added an error into my ~/.bashrc
.
For me the solution usually goes like this:
Hit Ctrl-Alt-F1 to get to console
Log in there
Open the file ~/.xsession-errors in your favourite editor:
nano ~/.xsession-errors
Go to the bottom and see what was the last error that made the login fail.
Now edit
~/.bashrc
or whatever file is causing the error, and fix it.Ctrl-Alt-F7 or F8 to get back to the graphical login screen, and try to log in again!

joeytwiddle
- 1,957