Skip to content
Unix Server Solutions
  • Server
  • Apple
  • Database
  • Ubuntu
  • Linux

Ubuntu – Freeze after login Ubuntu 18.04

18.04freezegnomelogin

This question already has answers here:

Ubuntu gets stuck in a login loop

(49 answers)
Closed 3 years ago.

Before the upgrade I was using gnome on Ubuntu 16.04 with lightdm and it worked fine. After upgrading to Ubuntu 18.04 I switched to gnome gdm3. On the first day I could login to my user account, configure gnome and so on. However on the next day when I tried to login for the first time, the login screen just comes back again and when I try it for a second time it just freezes. Can someone help me with this problem?

In advance thanks for help.

UPDATE: I switched back to lightdm and it works just fine. However I would still like to use gdm3 because I like it more. How could I do this?

Best Answer

You need to install your graphics drivers.

On your login page, press CTRL+ALT+F2

Enter your credentials and use the below commands (if you're using Nvidia graphics card)

sudo add-apt-repository ppa:graphics-drivers/ppa 
sudo apt-get update 
sudo apt-get install nvidia-390

If you're using some other graphics card then use

sudo ubuntu-drivers devices

to find out your recommended driver - as suggested by Joe.

Related Solutions

Ubuntu – 18.04 Freeze after login

Finally!

It seems that for now I've solved the problem by running (as user):

chmod 777 ~/.ICEauthority 
sudo dpkg --configure -a

Hope it helps somebody. To find this solution I used information found <here>.


Edit: maybe useful to add that I also changed grub, like this:

sudo nano /etc/default/grub

Change this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Save and exit, then run:

sudo update-grub
Ubuntu – Ubuntu 18.04 login loop problem with gnome; unity works fine

Had a similar issue. Try the following from the working Unity environment

  1. Using the Ubuntu Software Application install GNOME Tweaks
  2. GNOME Tweaks has a menu item named Startup Applications
  3. Remove all or only the application that is likely to be causing an issue. In my case the application was System Load Indicator
  4. Logout of the Unity environment and try to login to the default Ubuntu environment.
Related Question
  • Ubuntu – 18.04 Freeze after login
  • Ubuntu – Ubuntu 18.04 login loop problem with gnome; unity works fine
  • Ubuntu – Black screen after login 18.04
  • Ubuntu – After upgrade to 19.10, still get login screen after enabling Auto Login, but can’t log in
  • Ubuntu – Login loop for user account (gdm3)