I recently did a clean install of Ubuntu 18.04. I did this because I was having trouble with my computer not booting on 16.04. At first when I upgraded everything worked fine and booted normally. But recently I haven't been able to login, when I enter my password/ username is just goes in a loop and asks me for the password again. I am using a Dell XPS 13 and doing CTRL+ALT+F1 or any other function key during the login screen doesn't work. So if someone could provide some insight into this, that would be great :).
Asked
Active
Viewed 6,724 times
9
-
1Did you solve this, happens to me also. – Alexander Zeitler May 14 '18 at 00:02
-
I just ended up doing another clean install, and it's been working ever since. I didn't have anything in there to lose anyways. – Max May 14 '18 at 05:27
1 Answers
3
I solved this problem by removing a bad path from my .bashrc. This problem can be produced by a .bashrc/.bash_profile file that cannot be interpreted correctly.
acuriousloop
- 31
-
1Explain why this would cause problem described in Q. Explain how to edit files when cannot log in. – xiota Jun 15 '18 at 17:58
-
1The .bashrc file (usually located in the user's home directory) is loaded when a session is started. If there is a syntax error or bad path in the file, the session might not start properly. To check and edit a .bashrc file without being logged in as a user, you can boot into recovery mode and edit the file from the
rootterminal. For specific instructions, see answers to this related question: https://askubuntu.com/questions/842085/accidentally-modified-bashrc-and-now-i-cant-login-despite-entering-password-cor – acuriousloop Jun 16 '18 at 19:00 -