Gateway and Workstation changed from GUI to CLI

I updated Gateway and Workstation today. Both are originally GUI. After the update both are now CLI.

Can please someone help me change it back?

Why did this happen?

Thankyou for your support

1 Like

Can you share some of the blocks of text from the end of /var/log/apt/history.log? That will tell us what packages were recently installed and/or removed, which will help for debugging what went wrong.

1 Like

It happened to me.

The latest updated of lightdm replaced the existing symlink from display manager to greetd with a new symink from display manager to lightdm. On startup both lightdm and greetd failed to start. After disabling lightdm.service and enabling the greetd.service the problem was solved: it created a new symlink from window manager to greetd and removed the lightdm symlink.

Can you check this out?
Is lightdm even still needed?

LightDM shouldn’t be (and on my Whonix-Workstation VBox VM, isn’t) installed by default. It may be left behind if you release-upgraded from Whonix 17 to Whonix 18. If that’s the case, removing it should be fine.

1 Like

Try disabling lightdm on Whonix Workstation sysmaint cli using

sudo systemctl disable lightdm

And enable greetd using

sudo systemctl enable greetd.service

It should work now

I would use systemctl mask lightdm or uninstalling it directly to skip future issues

I’ve just made a full-upgrade and I got the same issue, it seems in apt history that lightdm is installed in the last version. I had to purge it and enable greetd again.

  • The following packets were installed:
lightdm:amd64 (1.32.0-6+b2, 1.32.0-6+deb13u1) libxklavier16:amd64 (5.4-5+b2), lightdm-gtk-greeter:amd64 (2.0.9-1), liblightdm-gobject-1-0:amd64 (1.32.0-6+deb13u1)
This is the full log:
Start-Date: 2026-11-27  11:00:40
Commandline: /usr/bin/apt-get --update full-upgrade
Requested-By: sysmaint (1001)
Install: linux-headers-6.12.118+deb13-amd64:amd64 (6.12.118-1, automatic), linux-kbuild-6.12.118+deb13:amd64 (6.12.118-1, automatic), linux-headers-6.12.118+deb13-common:amd6
4 (6.12.118-1, automatic), linux-image-6.12.118+deb13-amd64:amd64 (6.12.118-1, automatic)
Upgrade: libparted2t64:amd64 (3.6-5, 3.6-5+deb13u1), zstd:amd64 (1.5.7+dfsg-1, 1.5.7+dfsg-1+deb13u1), libgssapi-krb5-2:amd64 (1.21.3-5+deb13u1, 1.21.3-5+deb13u2), spice-vdage
nt:amd64 (0.22.1-4.1, 0.22.1-4.1+deb13u1), libnghttp2-14:amd64 (1.64.0-1.1+deb13u1, 1.64.0-1.1+deb13u2), python3-dnspython:amd64 (2.7.0-1, 2.7.0-1+deb13u1), libwww-perl:amd64
 (6.78-1, 6.78-1+deb13u1), libefisec1t64:amd64 (38-3.1+b1, 38-3.1+deb13u1), grub-pc-bin:amd64 (2.12-9+deb13u2, 2.12-9+deb13u4), zsh:amd64 (5.9-8+b24, 5.9-8+b25), patch:amd64
(2.8-2, 2.8-2+deb13u1), libjavascriptcoregtk-4.1-0:amd64 (2.54.0-1~deb13u3, 2.54.3-1~deb13u1), neovim:amd64 (0.10.4-8, 0.10.4-8+deb13u1), openssl-provider-legacy:amd64 (3.5.7
-1~deb13u3, 3.5.9-1~deb13u1), libfreetype6:amd64 (2.13.3+dfsg-1+deb13u1, 2.13.3+dfsg-1+deb13u2), neovim-runtime:amd64 (0.10.4-8, 0.10.4-8+deb13u1), libparted-fs-resize0t64:am
d64 (3.6-5, 3.6-5+deb13u1), linux-headers-amd64:amd64 (6.12.117-1, 6.12.118-1), libkrb5support0:amd64 (1.21.3-5+deb13u1, 1.21.3-5+deb13u2), grub-efi-amd64-unsigned:amd64 (2.1
2-9+deb13u2, 2.12-9+deb13u4), libefivar1t64:amd64 (38-3.1+b1, 38-3.1+deb13u1), libzstd1:amd64 (1.5.7+dfsg-1, 1.5.7+dfsg-1+deb13u1), libopenexr-3-1-30:amd64 (3.2.12-1~deb13u1,
 3.2.12-1~deb13u2), libc6:amd64 (2.41-12+deb13u4, 2.41-12+deb13u5), locales:amd64 (2.41-12+deb13u4, 2.41-12+deb13u5), libkrb5-3:amd64 (1.21.3-5+deb13u1, 1.21.3-5+deb13u2), li
nux-image-amd64:amd64 (6.12.117-1, 6.12.118-1), libefiboot1t64:amd64 (38-3.1+b1, 38-3.1+deb13u1), efivar:amd64 (38-3.1+b1, 38-3.1+deb13u1), base-files:amd64 (13.8+deb13u7, 13
.8+deb13u8), libk5crypto3:amd64 (1.21.3-5+deb13u1, 1.21.3-5+deb13u2), grub-efi-amd64-signed:amd64 (1+2.12+9+deb13u2, 1+2.12+9+deb13u4), login.defs:amd64 (1:4.17.4-2, 1:4.17.4
-2+deb13u1), lightdm:amd64 (1.32.0-6+b2, 1.32.0-6+deb13u1), libwebkit2gtk-4.1-0:amd64 (2.54.0-1~deb13u3, 2.54.3-1~deb13u1), grub-efi-amd64-bin:amd64 (2.12-9+deb13u2, 2.12-9+d
eb13u4), grub2-common:amd64 (2.12-9+deb13u2, 2.12-9+deb13u4), libc-dev-bin:amd64 (2.41-12+deb13u4, 2.41-12+deb13u5), libc-l10n:amd64 (2.41-12+deb13u4, 2.41-12+deb13u5), grub-
common:amd64 (2.12-9+deb13u2, 2.12-9+deb13u4), libgpgme11t64:amd64 (1.24.2-3, 1.24.2-3+deb13u1), brave-browser:amd64 (1.99.57, 1.100.59), sudo:amd64 (1.9.16p2-3+deb13u2, 1.9.
16p2-3+deb13u5), libc-bin:amd64 (2.41-12+deb13u4, 2.41-12+deb13u5), libgpgmepp6t64:amd64 (1.24.2-3, 1.24.2-3+deb13u1), libssl3t64:amd64 (3.5.7-1~deb13u3, 3.5.9-1~deb13u1), libc6-dev:amd64 (2.41-12+deb13u4, 2.41-12+deb13u5), parted:amd64 (3.6-5, 3.6-5+deb13u1), liblightdm-gobject-1-0:amd64 (1.32.0-6+b2, 1.32.0-6+deb13u1), flatpak:amd64 (1.16.6-1~deb13u3, 1.16.6-1~deb13u4), libgd3:amd64 (2.3.3-14~deb13u1, 2.3.3-14~deb13u3), openssl:amd64 (3.5.7-1~deb13u3, 3.5.9-1~deb13u1), passwd:amd64 (1:4.17.4-2, 1:4.17.4-2+deb13u1), linux-libc-dev:amd64 (6.12.117-1, 6.12.118-1)
End-Date: 2026-11-27  11:01:51

Start-Date: 2026-11-27  11:02:22
Commandline: /usr/bin/apt autopurge
Requested-By: sysmaint (1001)
Purge: linux-headers-6.12.115+deb13.1-amd64:amd64 (6.12.115-2), linux-kbuild-6.12.115+deb13.1:amd64 (6.12.115-2), linux-image-6.12.115+deb13.1-amd64:amd64 (6.12.115-2), linux-headers-6.12.115+deb13.1-common:amd64 (6.12.115-2)
End-Date: 2026-11-27  11:02:30

Start-Date: 2026-11-27  11:13:31
Commandline: /usr/bin/apt purge lightdm
Requested-By: sysmaint (1001)
Purge: lightdm:amd64 (1.32.0-6+deb13u1) :folded_hands:
End-Date: 2026-11-27  11:13:37

Start-Date: 2026-11-27  11:13:44
Commandline: /usr/bin/apt autopurge
Requested-By: sysmaint (1001)
Purge: libxklavier16:amd64 (5.4-5+b2), lightdm-gtk-greeter:amd64 (2.0.9-1), liblightdm-gobject-1-0:amd64 (1.32.0-6+deb13u1)
End-Date: 2026-11-27  11:13:46

Also, I had issues with PAM, I couldn’t log-in with the main user, it said the password was wrong but I’ve autologin activated and the default (no-password) configuration. So thankfully I could access with the sysmaint user, otherwise I’d have lost access to my machine :folded_hands:

Comment for developers:

Root cause (verified against derivative-maker 18 sources):

  • 18 uses greetd. dist-nonqubes-gui-lxqt depends on greetd/wlgreet; nothing in the meta-packages depends on or recommends lightdm. Fresh 18 installs have no lightdm.
  • Affected machines are 17 → 18 upgrades (17 used lightdm).
  • legacy-dist release-upgrade migrates the display manager with only systemctl disable display-manager.service + systemctl enable greetd.service. It does not purge lightdm, and does not reset Debian DM arbitration (shared/default-x-display-manager, /etc/X11/default-display-manager). The adjacent apt autoremove is commented out. Our maintscripts only rm_conffile /etc/lightdm/*.conf (our own files); the lightdm package stays installed.

Breakage chain:

  1. lightdm remains installed, arbitration still pointing at it.
  2. Debian ships lightdm 1.32.0-6+deb13u1; apt full-upgrade runs lightdm postinst, which reclaims /etc/systemd/system/display-manager.service → lightdm.service (matches the reported symlink flip).
  3. Nothing re-asserts greetd.
  4. Next boot: display-manager.service = lightdm, which has no valid config on a Wayland/greetd/LXQt system and fails; greetd is no longer the active DM → boots to CLI.

Confirmed workaround: systemctl disable lightdm; systemctl enable greetd.service, then purge lightdm.

Key constraint: affected users already ran release-upgrade, so a fix limited to that script will not reach them; it must arrive via a normal 18 package update.

Options:

  • A. Declarative purge (reaches already-broken systems): add Conflicts: lightdm (consider gdm3/sddm) to dist-nonqubes-gui-lxqt so the next apt full-upgrade removes lightdm; pair with a greetd re-assert so display-manager.service returns to greetd after removal.
  • B. Defensive re-assert (self-heal): desktop-config-dist postinst/trigger repoints display-manager.service to greetd whenever greetd is installed; neutralizes any DM hijack on the next update even if lightdm lingers.
  • C. Harden release-upgrade (future upgraders only): purge lightdm + reset DM arbitration in the 17 → 18 migration. Does not reach already-broken machines, so not sufficient alone.

A + B reaches current users and self-heals; C closes the migration gap.

Secondary, unrelated: the reported autologin “wrong password” PAM failure is a separate issue, not the DM symlink.