10

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.
karel
  • 122,292
  • 133
  • 301
  • 332

3 Answers3

10

I had to disable the Extensions Gnome extension.

  1. Being at Login screen go to the second terminal (CTRL+ALT+F2)
  2. Login as your user there
  3. Execute gnome-shell-extension-tool -d extensions@abteil.org
  4. 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.

Mcmil
  • 216
4

(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.

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
user1754322
  • 207
  • 1
  • 7
sunew
  • 101