Upgrade from Ubuntu 22.04 to 24.04 interrupted

by no gnome means no desktop?

have you tried run dpkg command as @rubi1200 recommend?
$ sudo dpkg --configure -a

Sorry for delay

Yes rubi1200, as far as I can see now the major problem are those (there are some minor ones like Autokey hotkeys don’t work
)
For jipangmenjerit: that command has no effect at all (nothing happens!)
Thank you for help!

Here is what I would try next:

  1. Install LibreOffice
  2. Reinstall and restart gdm

sudo apt install libreoffice

sudo apt install --reinstall gdm3
sudo dpkg-reconfigure gdm3
sudo systemctl restart gdm3

Fingers crossed :crossed_fingers:

Done those commands:
after the first LibreOffice worked.
Troubles with the last 3:
I was asked which video manager use I clicked gdm then got a login screen but I could not login because a warning said that a session was already open and I had to logout first, that warning gave me the possibility to force the logout but clicking that nothing happened. Tried to shut off the laptop but no way, clicking on the power off button was likewise ineffective. I had to hard reset the system pushing the power-on button for 10 seconds.
Restarting it looks working, but at login there is not the possiility to choose Xorg or Wayland


Well, good that LibreOffice is working again.

Let’s try and fix gdm3.

sudo nano /etc/gdm3/custom.conf

You are looking for a line like this:
#WaylandEnable=false

If uncommented and says WaylandEnable=false, then Wayland is disabled.
To re-enable it, either:

  • comment it out again: #WaylandEnable=false

  • or change to WaylandEnable=true

Save the file with Ctrl+O >> Enter >> Ctrl+X

After that, we need to restart gdm from a tty terminal.

Stay in the session and type Ctrl+Alt+F3

Login with your username and password and then run this:
sudo systemctl restart gdm3

Then type Ctrl+Alt+F1 to get back to the login screen.

When you click your username you should now see the gear icon with the option to choose either Wayland or Xorg.

Done the “WaylandEnable=True” (anyway “WaylandEnable=false” was commented)
after Ctrl+Alt+F3 at the comand sudo systemctl restart gdm3 I got the login screen as before but still no gear, no options on Xorg / Wayland)

Just a stupid suggestion, the gear only shows up when you click on the checkbox to enter your user name. I guess it doesn’t show up when you do that, right?

Right, that’s so. Thanks


What does this show?
lspci -nnk | grep -A3 VGA

If it shows nvidia that might be why Wayland is hidden.

Just in case, what does

dpkg -l | grep xserver-xorg-core

show?

$ lspci -nnk | grep -A3 VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07)
DeviceName: Onboard IGD
Subsystem: Dell UHD Graphics 620 [1028:07e6]
Kernel driver in use: i915

$ dpkg -l | grep xserver-xorg-core
ii xserver-xorg-core 2:21.1.12-1ubuntu1.4 amd64 Xorg X server - core server

Let’s check and see if the right sessions are running. We will hopefully get to the bottom of this :slight_smile:

ls /usr/share/wayland-sessions/

On a normal GNOME install you should see gnome.desktop

Also check this:
ls /usr/share/xsessions/

It should show this

gnome.desktop
gnome-xorg.desktop

If missing, it means we will need to try and reinstall gdm3.

$ ls /usr/share/wayland-sessions/
gnome-classic.desktop gnome-classic-wayland.desktop ubuntu.desktop ubuntu-wayland.desktop

ls /usr/share/xsessions/
gnome-classic.desktop gnome-classic-xorg.desktop ubuntu.desktop ubuntu-xorg.desktop

the word “classic” is attached


echo $XDG_SESSION_TYPE

Does it show X11 or wayland?

If it shows wayland this is already the default and likely why you do not see the gear icon.

it shows wayland


Please post the entire output of this file, so we can make sure it really is correctly formatted:
cat /etc/gdm3/custom.conf

$ cat nano /etc/gdm3/custom.conf
cat: nano: No such file or directory
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=true

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true

Next try:
sudo nano /etc/gdm3/custom.conf

#WaylandEnable=true just add the # before that line and then save.

Ctrl+O, Enter, Ctrl+X

Then systemctl reboot

Fingers crossed :crossed_fingers:

Got the login screen as before, but with a small gear in the low right corner of the screen, it gives 4 options:
Gnome classic
Gnome classic on Xorg
Ubuntu
Ubuntu on Xorg