9

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 :).

Max
  • 101

1 Answers1

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.

  • 1
    Explain why this would cause problem described in Q. Explain how to edit files when cannot log in. – xiota Jun 15 '18 at 17:58
  • 1
    The .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 root terminal. 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
  • @acuriousloop, append correction to the main post text, please ) – isnullxbh Jun 19 '18 at 12:19