0

I am using Ubuntu 20.04. I can now no longer login to my machine. Attempting to login will make the screen go black, and then I get thrown back to the purple login screen.

This is the timeline of the issue:

  1. I added a new alias to my .bashrc file.
  2. I did ‘source .bashrc’ in my terminal.
  3. Then I did a reboot and I can’t login.

I’ve tried using Ctrl+alt+f3, to login through the terminal but the same problem happens when I try login to the terminal.. It kicks me out again right away. Any help would be amazing!

I have tried booting into recovery mode, but I feel like it might be disabled. Holding down escape during boot gets me stuck at this screen.

I feel I might be a bit screwed. I can’t access recovery mode, or login as root. And the login loop is persistent when logging in to the terminal or the gui login. enter image description hereenter image description here

1 Answers1

1

Boot from live media (e.g. an Ubuntu installation USB stick), mount your root filesystem and move your .bashrc away for the moment, then reboot into your normal system.

Personally I always set a root password so I am able to recover from exactly this situation. I don't usually work with the root account, but it's there in case I need it (usually when I did something really stupid).

Judging from the error message, you might have run into this problem:

Ubuntu 20.04 Failed to Set MokListRT: Invalid Parameter

HuHa
  • 3,525