Login loop after upgrading to 19.04
Solution 1
I had to disable the Extensions Gnome extension.
- Being at Login screen go to the second terminal (
CTRL+ALT+F2
) - Login as your user there
- Execute
gnome-shell-extension-tool -d [email protected]
- Restart the system or go back to the first terminal (
CTRL+ALT+F1
) with GUI Login screen and try to login again.
Please look at /var/log/syslog and check if you see some Gnome crash stacktrace.
Solution 2
(As @robgrune said in comments, 19.04 seems to be particularly susceptible to extensions, and @Milso's answer is on the right track, but in my case creating a new user didn't fix the problem.)
If you create a new user and still can't log in, then it's possible that a gnome extension package is causing your problem.
In my case, I had to uninstall gnome-clocks
.
sudo apt remove gnome-clocks
There are also other packages that are actually gnome extensions but, unfortunately, not all are listed as extensions. To see all the gnome packages chosen:
sudo apt list --installed | grep gnome | grep -v automatic
Then uninstall one-by-one until you can log in again. You can always reinstall them again afterwards.
Solution 3
One possible cause for a login loop is installation of chrome remote desktop in ubuntu 19. Remove it via the terminal, and login works again.
sudo apt remove chrome-remote-desktop
Related videos on Youtube
![Emil Smith](https://lh4.googleusercontent.com/-tNbWjw6dM28/AAAAAAAAAAI/AAAAAAAACR4/QwVpGlwP_Hc/photo.jpg?sz=256)
Emil Smith
Updated on September 18, 2022Comments
-
Emil Smith almost 2 years
I used the built-in upgrader to upgrade to 19.04 today, and I'm now stuck in a login loop. I have tried many solutions from forums, but nothing has worked. Is there something I'm missing or anything else I should try?
From what I've seen, I don't think that there is an Xauthority file on my computer. I'm on a Dell XPS 15 with a GTX 1050Ti Max-Q GPU, and a Core i7 processor. I also have a Windows dual boot, and while Ubuntu's my main OS, luckily almost everything is on GitHub, Google Drive or my Windows partition.
Results of
ubuntu-drivers devices
:emil@emil-XPS-15-9570:~$ ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00001C8Csv00001028sd0000087Cbc03sc02i00 vendor : NVIDIA Corporation model : GP107M [GeForce GTX 1050 Ti Mobile] driver : nvidia-driver-418 - distro non-free recommended driver : nvidia-driver-415 - third-party free driver : nvidia-driver-396 - third-party free driver : nvidia-driver-390 - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin
Results of
sudo systemctl start graphical.target
:Failed to start graphical-target.service: Unit graphical-target.service not found.
-
Saurabh about 5 yearsI had to create the new user from tty and add new user to sudoers. after that i just renamed the .config in my original user's home directory and it started working. Be aware that you will lose the customization you had done.
-
Cranky about 5 yearsYou nailed it, Milso!
-
rob grune about 5 yearsThis solution assumes the user can log-in under a new name. But what if log-in is impossible for any name? This is the problem I had. The only solution I could think of was a fresh install, onto a fresh-formatted partition, and choosing the "minimal" install option. I am slowly adding all the apps that ran in 18.10. After 2 days, no problems yet. My thanks to Milso for providing a direction.
-
Milso about 5 years@robgrune Please check the edited post. You can easily log in as your own user with no graphical environment just switching the terminal.
-
rob grune about 5 years@Milso. Please, could you help? It has re-occurred; no login possible. I followed your approach to switch and delete the extension. The message is:... extension is not found or not installed. I switched back to graphic screen logon. The logon screen shows my user name, but when I enter the pwrd, the screen loops back. Impossible to logon. I am using the exact same apps in 19.04 as used in 18.10, so I cannot understand why an app would be causing this. Thank you.
-
Milso about 5 years@robgrune Your case might be not related to the broken extension. Do you use Xorg or Wayland session? Can you find some errors related to Gnome in /var/log/syslog ? What drivers and graphics card do you use?
-
rob grune about 5 years@ Milso. g/card: GeForce GTX 750 Ti. driver: 340.107 appears to be X.org. syslog has +50,000 lines. what do I look for?
-
Milso about 5 years@robgrune Did you try to create another user through the console and log in (1. sudo useradd testuser 2. sudo passwd testuser 3. try to login as new user) ? The question is why it stopped working. You can try to remove old Nvidia drivers and install the newest (418 version) as well. Also, you can try to take a look at /var/log/syslog - go to the time you are login and it's failing: (e.g. logs that I had: github.com/petres/gnome-shell-extension-extensions/issues/17)
-
rob grune about 5 years@ Milso. Thanks again for your input. Could not add another user! I scoured the syslog and noted a few "critical". One related to no user. Another related to no timezone. weird. I wonder if this occurred after I installed the app "gnome-clocks". Anyway, with no logon possible, I re-installed minimal again, using the 3rd party drivers option. I use disc partitions to segregate the o/s from data, so the fresh install goes quickly: usually this is far quicker than trying to research and debug. Well, fresh install works always, and I won't be installing the clocks, so let's see how this goes.
-
rob grune about 5 yearsLet us continue this discussion in chat.
-
tudor -Reinstate Monica- about 5 yearsI'm looking for another solution to this also. I was using 19.04 fine for a couple of weeks, then hit this bug suddenly yesterday. I can add a user but can't log in. There's nothing listed in ~/.local/share/gnome-shell/extensions (folder doesn't exist!)
-
tudor -Reinstate Monica- about 5 years@robgrune Chat link doesn't seem to work. I get 404. :-(
-
rob grune about 5 years@tudor. Someone has removed the chat, not me. 19.04 seems to be very vulnerable to extensions. So far, the only "solution" I have found is a complete re-install. I have learned to partition my hard drive, to insulate user-files from the o/s files. I am researching restore points and related grub edits, and will post when I have a true solution.
-
Michael about 5 yearsIt was gnome-clocks !!!
-
Giulio Guerrieri almost 5 yearsIt was
gnome-clocks
(the version 3.32.0-1 that you can install withsudo apt-get install gnome-clocks
) for me as well, on Ubuntu 19.04. Actually, I found two workarounds: 1) install the snap version ofgnome-clocks
from here; 2) installgnome-clocks
via apt-get but uninstall the extensionClock Override
. -
user1754322 about 4 yearsThis solution worked for me!