3

I’ve been running into an issue today where Ubuntu refuses to start and hangs on the boot screen. Dropping to the tty shell, I think this is because gdm fails, with the error shown in the picture.

So far, I’ve tried reinstalling my nvidia drivers and reinstalling my OS (I’ve done that 3 times) but each time, this issue reappears. I’m running a vanilla Ubuntu 23.04 install.

How can i fix this?

gdm issue

2
  • 3
    If you can get to a shell like this, technically it didn't fail to boot. It just failed to start the GUI. More info might be in /var/crash Commented May 23, 2023 at 11:20
  • This ^^^ and the problem is very likely caused by incorrect Nvidia drivers version, incorrect installation and/or not having the modules signed (required with Secure Boot enabled). Commented May 23, 2023 at 12:57

3 Answers 3

6

On Ubuntu 24.04 I faced the same issue. The answer given by alexbsti didn't work for me, perhaps because there is no ubuntu-session and xwayland installed on Ubuntu 24.04.

I switched to tty2 (Ctrl+Alt+2) and purged and reinstalled gdm3 and it fixed my problem:

sudo apt purge gdm3 sudo apt install gdm3 
3
  • 1
    simple as that, worked perfectly for me Commented Jun 20, 2024 at 0:58
  • Same here on 24.04, fixed it for me too and this was on basically a fresh install of 24.04 Commented Aug 19, 2024 at 5:19
  • I have to run the following command after sudo apt install gdm3 to get back the GUI : sudo systemctl restart gdm Commented May 23 at 20:13
2

Found a solution- reinstalled ubuntu-session and it reinstalled xwayland and that seems to have fixed it. Found the solution here, in the last few comments: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2006590

Edit: As a followup, I recommend not running Wayland on NVidia Cards currently; the drivers are a bit of a mess in that regard.

0

I upgraded to 24.04 and have no display. I tried the purge/reinstall of gdm3 and it shows an error gdm.service is not active, cannot reload. invoke-rc.d: initscript gdm3, action "reload" failed. and does not fix the problem:

$ sudo apt install gdm3 Reading package lists... Done Building dependency tree... Done Reading state information... Done Suggested packages: libpam-pkcs11 The following NEW packages will be installed: gdm3 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 334 kB of archives. After this operation, 2,073 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu noble/main amd64 gdm3 amd64 46.0-2ubuntu1 [334 kB] Fetched 334 kB in 1s (500 kB/s) Preconfiguring packages ... Selecting previously unselected package gdm3. (Reading database ... 214559 files and directories currently installed.) Preparing to unpack .../gdm3_46.0-2ubuntu1_amd64.deb ... Unpacking gdm3 (46.0-2ubuntu1) ... Setting up gdm3 (46.0-2ubuntu1) ... Creating config file /etc/gdm3/greeter.dconf-defaults with new version update-alternatives: using /etc/pam.d/gdm-smartcard-sssd-exclusive to provide /e tc/pam.d/gdm-smartcard (gdm-smartcard) in auto mode gdm.service is not active, cannot reload. invoke-rc.d: initscript gdm3, action "reload" failed. Processing triggers for dbus (1.14.10-4ubuntu4.1) ... Processing triggers for man-db (2.12.0-4build2) ... 
1

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.