Login loop after installing 20.04
Solution 1
I fixed the bug with my Ubuntu 20.04 and Nvidia RTX 2080 as follows:
- Do not check the box the automatic loggon during installation.
- First start Ubuntu with your password
- Move on Parameter, users, and check the box for the automatic login (after unlocking).
- Reboot Ubuntu.
- In GRUB, select advanced options for Ubuntu, then recovery mode.
- Select the 'root' mode.
- Write:
sudo nano /etc/default/grub
- Replace
GRUB_CMDLINE_LINUX_DEFAUT="quiet splash"
withGRUB_CMDLINE_LINUX_DEFAUT="quiet"
(i.e. delete splash). - CTRL+X then Y then ENTER
- Write,
sudo update-grub
- Write either
reboot
orexit
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
Related videos on Youtube
ThomasK
Updated on September 18, 2022Comments
-
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 about 4 yearsYes, Nvidia graphics, intel processor. I selected to install proprietary drivers if that makes a difference.
-
ThomasK about 4 yearsIt actually worked! Thanks a bunch!
-
Martin about 4 yearsThis 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 about 4 yearsThierry, please can you say me more about the Samba bug? I am using Ubuntu at my work in Win environment.
-
Ben Hocking almost 4 yearsThis was a simple solution that worked for me when installing 20.04 on VirtualBox: how2shout.com/how-to/…
-
Adam over 3 yearsDoes this answer your question? Ubuntu gets stuck in a login loop
-
-
Pilot6 about 4 yearsWhat 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 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 about 4 yearsHow does the performance compare from noueau to Nvidia drivers? Any difference at all?
-
Pilot6 about 4 yearsThere 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 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 about 4 yearsIt's fine now, but useless and potentially harmful.
-
ThomasK about 4 yearsOk 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 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 about 4 yearsMany thanks, it seems to solve my problem. I continue to monitor Ubuntu 20.04.
-
Manoj Kumar about 4 yearsI 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. about 4 yearsYes, that's what did it for me.
-
Jeff Ward about 4 yearsWorks great, no poking at setup or recovery. Thanks!
-
brokkr about 4 yearsThis 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 almost 4 yearsSorry, but does not help.
-
Ramratan Gupta almost 4 yearsI just removed did to remove nvidia and did not installed any other open source driver
-
sk8terboi87 ツ almost 4 yearsProblemo Solved! Removing "splash" did the job!
-
Amias almost 4 yearsnivdias divers are suprisingly stable , the packaging of them isn't so good. noveau is coming along though
-
Desmond almost 4 yearsthat worked for me as well. Is this a bug for Ubuntu on supporting Chrome Remote Desktop?
-
Amias almost 4 yearssame on a dell m3800
-
k_g almost 4 yearsthis worked for me! does anyone have an explanation for why this works? I'd be really interested in learning why!
-
Reuben Mallinson almost 4 yearsThank you! This is what worked for me too, after trying some of the other answers here.
-
Greg G almost 4 yearsEventually I reinstalled the whole system and it did not delete my files.
-
Daniel almost 4 yearsIt broked my computer. Now it not starts correctly.
-
gozzilli over 3 yearsAny other option if this doesn't work?
lightdm
works for me, starting X withstartx
also works, butgdm3
still gets stuck on the login loop. Tried also removing.Xauthority
. -
themichaelscott over 3 yearsThank you so much. That was so frustrating!!
-
Arthur over 3 yearsThis 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 over 3 yearsonly solution that works without network
-
Koen Van Looveren over 3 yearsYou saved me from a minor headache :D
-
codeling over 2 yearsThanks, 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...)