Login loop after installing 20.04

51,576

Solution 1

I fixed the bug with my Ubuntu 20.04 and Nvidia RTX 2080 as follows:

  1. Do not check the box the automatic loggon during installation.
  2. First start Ubuntu with your password
  3. Move on Parameter, users, and check the box for the automatic login (after unlocking).
  4. Reboot Ubuntu.
  5. In GRUB, select advanced options for Ubuntu, then recovery mode.
  6. Select the 'root' mode.
  7. Write: sudo nano /etc/default/grub
  8. Replace GRUB_CMDLINE_LINUX_DEFAUT="quiet splash" with GRUB_CMDLINE_LINUX_DEFAUT="quiet" (i.e. delete splash).
  9. CTRL+X then Y then ENTER
  10. Write, sudo update-grub
  11. Write either reboot or exit then resume

It works for me for starting Ubuntu 20.04 without my password.

Good luck, my opinion is this 20.04 is not suitable for a novice, few months should be waited before installation (especially if you use a nas at home, there also is a serious bug with samba client used by nautilus).

Solution 2

At the boot screen, go to "Advanced options for Ubuntu". Then select the option that has "recovery" in it. At the recovery menu, the first option is "resume - Resume normal boot". Press enter in this option and enter again in the next screen. Now enter your password and the desktop will show up. Press "windows" button and type "login". Press enter and then click on "unlock" at the top. Type your password and deactivate "automatic login". There is a bug with nvidia drivers and automatic login. What I described worked for me, without having to install or remove anything. the only annoyance is having to typr the password at login.

Solution 3

If some of the answer above doesn't work and you previously installed chrome remote desktop,switch to TTY pressing ctrl + alt + f3 and executing sudo apt-get purge chrome-remote-desktop for uninstalling, hope this solve the problem

Solution 4

This is the only thing that worked for me:

sudo apt install nvidia-driver-440; sudo reboot

You heard me, my problem wasn't Nvidia driver, but Nouveau driver.

Also note that I tried before with the nvidia-driver-390 package: I could login but the only available resolution was 640x480.

This is my hardware:

> sudo lshw -c cpu -c display -short
H/W path           Device     Class          Description
========================================================
/0/4                          processor      Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
/0/100/1/0                    display        TU106 [GeForce RTX 2070]

Solution 5

From comments:

Switch to Nouveau which is an open source driver for Nvidia graphics since Nvidia's proprietary drivers are known to have issues with Ubuntu. To switch the drivers, press Ctrl+Alt+F3 to switch to TTY mode. Login with your credentials and run

sudo apt-get purge 'nvidia.*'
sudo reboot now
Share:
51,576

Related videos on Youtube

ThomasK
Author by

ThomasK

Updated on September 18, 2022

Comments

  • ThomasK
    ThomasK over 1 year

    I just installed Ubuntu 20.04 with proprietary drivers for Nvidia, in dual boot with Windows.

    Everything went smoothly, but I cannot login. After I enter the password nothing happens, it stuck in a login loop.

    I tried reinstalling, but it leads to the same issue.

    • ThomasK
      ThomasK about 4 years
      Yes, Nvidia graphics, intel processor. I selected to install proprietary drivers if that makes a difference.
    • ThomasK
      ThomasK about 4 years
      It actually worked! Thanks a bunch!
    • Martin
      Martin about 4 years
      This is the fix from Ubuntu 19. Valid also for 20.04. I used this solution for myself. It's GRUB bug. ubuntuhandbook.org/index.php/2020/01/… Another Martin.
    • Martin
      Martin about 4 years
      Thierry, please can you say me more about the Samba bug? I am using Ubuntu at my work in Win environment.
    • Ben Hocking
      Ben Hocking almost 4 years
      This was a simple solution that worked for me when installing 20.04 on VirtualBox: how2shout.com/how-to/…
    • Adam
      Adam over 3 years
      Does this answer your question? Ubuntu gets stuck in a login loop
  • Pilot6
    Pilot6 about 4 years
    What is the point of sudo apt-get install xserver-xorg-video-nouveau? It is installed in all systems. Purging nvidia makes sense. Generally it is a good practice to remove proprietary drivers before upgrade.
  • Kulfy
    Kulfy about 4 years
    @Pilot6 It's been a while since I had a PC with Nvidia. IIRC Nvidia's proprietary and nouveau used to conflict. Now I'm doubting my memory. Well on a side note, there's no harm in "installing" that if that's already installed :)
  • ThomasK
    ThomasK about 4 years
    How does the performance compare from noueau to Nvidia drivers? Any difference at all?
  • Pilot6
    Pilot6 about 4 years
    There is harm. if a HWE xorg is installed, it will break everything, Now it won't make any harm, but this answer may be used later. People will break everything and will be guessing where did they take commands they've run.
  • Kulfy
    Kulfy about 4 years
    @Pilot6 I believe it's fine as of now for 20.04 since HWE isn't going to happen for 20.04 before the second point release. I have removed the installation part. I hope it's fine now :)
  • Pilot6
    Pilot6 about 4 years
    It's fine now, but useless and potentially harmful.
  • ThomasK
    ThomasK about 4 years
    Ok the performance difference is huge. Is there any way to get the NVIDIA driver to work? Since it seems to work just fine in live mode (from USB) I tried 440 and 395 version, both with the same result
  • Pilot6
    Pilot6 about 4 years
    @ThomasK You can ask a new question related this problem. Mention which Nvidia adapter you have, is Secure Boot disabled, etc.
  • Sébastien Serre
    Sébastien Serre about 4 years
    Many thanks, it seems to solve my problem. I continue to monitor Ubuntu 20.04.
  • Manoj Kumar
    Manoj Kumar about 4 years
    I am using Dell Inspiron 15 7000 series 7757 gaming laptop. I have set up the dual boot with Win 10 too. I tried various things and did the same but removed quiet too. It is working finally.
  • David V.
    David V. about 4 years
    Yes, that's what did it for me.
  • Jeff Ward
    Jeff Ward about 4 years
    Works great, no poking at setup or recovery. Thanks!
  • brokkr
    brokkr about 4 years
    This actually helped me but could be a lot clearer. The fix boils down to "disable automatic login". The way to get there - complicated by not being able to access GNOME settings because, well, you cannot log in - is to do some GRUB magic. The "boot screen" refered to is the GRUB boot menu and you should pick one of the "(recovery)" options from the "Advanced optionsfor Ubuntu" submenu. From the ncurses menu after that, pick "Resume normal boot". Log in from your DM. Once in GNOME (fingers crossed), go to the "User" section of Settings and disable "Automatic Login".
  • Greg G
    Greg G almost 4 years
    Sorry, but does not help.
  • Ramratan Gupta
    Ramratan Gupta almost 4 years
    I just removed did to remove nvidia and did not installed any other open source driver
  • sk8terboi87  ツ
    sk8terboi87 ツ almost 4 years
    Problemo Solved! Removing "splash" did the job!
  • Amias
    Amias almost 4 years
    nivdias divers are suprisingly stable , the packaging of them isn't so good. noveau is coming along though
  • Desmond
    Desmond almost 4 years
    that worked for me as well. Is this a bug for Ubuntu on supporting Chrome Remote Desktop?
  • Amias
    Amias almost 4 years
    same on a dell m3800
  • k_g
    k_g almost 4 years
    this worked for me! does anyone have an explanation for why this works? I'd be really interested in learning why!
  • Reuben Mallinson
    Reuben Mallinson almost 4 years
    Thank you! This is what worked for me too, after trying some of the other answers here.
  • Greg G
    Greg G almost 4 years
    Eventually I reinstalled the whole system and it did not delete my files.
  • Daniel
    Daniel almost 4 years
    It broked my computer. Now it not starts correctly.
  • gozzilli
    gozzilli over 3 years
    Any other option if this doesn't work? lightdm works for me, starting X with startx also works, but gdm3 still gets stuck on the login loop. Tried also removing .Xauthority.
  • themichaelscott
    themichaelscott over 3 years
    Thank you so much. That was so frustrating!!
  • Arthur
    Arthur over 3 years
    This is the one that did it for me. Purging old (410), and installing new (440). Or, at least, this was the last thing I did before login worked.
  • masterxilo
    masterxilo over 3 years
    only solution that works without network
  • Koen Van Looveren
    Koen Van Looveren over 3 years
    You saved me from a minor headache :D
  • codeling
    codeling over 2 years
    Thanks, that did it for me too! Not sure why the drivers were not installed during setup - I actually explicitly selected the option to install additional drivers (and the MOK procedure for adding the key to secure boot also seemed to go successfully...)