GNOME Removal During Ubuntu Major Upgrades | Generated by AI

Home 2026.03

Question: During an Ubuntu 22 to Ubuntu 24 upgrade, can the GNOME desktop environment get completely uninstalled?

Answer:

Yes, this can absolutely happen during a major Ubuntu release upgrade. Here’s a comprehensive explanation of why and how:


Why GNOME Gets Uninstalled During Ubuntu 22 → 24 Upgrade

1. Package Transition and Renamed Meta-packages

During do-release-upgrade, the upgrade tool (ubuntu-release-upgrader) resolves dependency trees between releases. If any of the following occur, desktop packages can be removed:

2. The “Autoremove” Cascade

Ubuntu’s upgrade process marks many packages as “automatically installed.” If a meta-package like ubuntu-desktop gets removed or replaced, all its auto-installed dependencies become orphaned and eligible for autoremoval. This creates a cascade:

ubuntu-desktop removed
  → gdm3 marked for removal
    → gnome-shell marked for removal
      → gnome-session marked for removal
        → gnome-settings-daemon marked for removal

3. The rc Status Is the Smoking Gun

The rc state (removed, config retained) on gdm3, gnome-shell, and gnome-settings-daemon confirms these were cleanly removed by the package manager — not corrupted. This is a controlled removal, not a crash.

4. The active (exited) GDM3 Trap

This is a particularly confusing symptom. Here’s the flow:

systemd starts gdm3 service
  → triggers /etc/init.d/gdm3 (SysV compat)
    → script checks: test -x /usr/sbin/gdm3
      → binary missing → exits 0 (success!)
        → systemd reports: active (exited) ✓

The service appears healthy but has done nothing. Combined with graphical.target still being the default and /etc/X11/default-display-manager still pointing to the missing binary, the system boots silently to TTY with no errors logged.


How to Prevent This in Future Upgrades


Recovery

As already identified, the fix is straightforward:

sudo apt install ubuntu-desktop
sudo reboot

This reinstalls the full meta-package, pulls back GDM3, GNOME Shell, and all dependencies, and restores the graphical login on next boot.

References:


Back Donate