GDM fails to start at boot after removing LightDM

Bug #1860770 reported by Chris Halse Rogers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I removed LightDM on the 14th and then didn't reboot until after upgrading to Focal. The next reboot didn't launch a display manager at all, and we tracked this down to /etc/systemd/system/display-manager.service still pointing to lightdm.service. This is probably a bug in lightdm {pre,post}rm?

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: lightdm (not installed)
ProcVersionSignature: Ubuntu 5.3.0+bcachefs.git20200106.d763e8ab-1-generic 5.3.13
Uname: Linux 5.3.0+bcachefs.git20200106.d763e8ab-1-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu15
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Jan 24 11:18:25 2020
InstallationDate: Installed on 2019-08-29 (148 days ago)
InstallationMedia: Ubuntu 19.10 bcachefs (20190828)
SourcePackage: lightdm
UpgradeStatus: Upgraded to focal on 2020-01-20 (3 days ago)

Revision history for this message
Chris Halse Rogers (raof) wrote :
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Did you forget to make gdm the default DM?

sudo dpkg-reconfigure gdm3

If you did, this does not sound as a bug to me.

Changed in lightdm (Ubuntu):
status: New → Incomplete
Revision history for this message
Chris Halse Rogers (raof) wrote :

I do not recall, but uninstalling lightdm should have done this automatically.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

On 2020-01-24 12:56, Chris Halse Rogers wrote:
> uninstalling lightdm should have done this automatically.

Can you point at some spot in the documentation where the behavior you claim is correct has been documented? (If not, this may be considered a feature request - importance "wishlist".)

Revision history for this message
Chris Halse Rogers (raof) wrote :

debian/lightdm.prerm quite obviously attempts to remove itself from the display manager set.

Also, “remove this non-default package and your system stops booting¹” is a terrible experience.

¹: from an end-user perspective, booting to a black screen is the same as not booting.

Changed in lightdm (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

On 2020-01-24 13:42, Chris Halse Rogers wrote:
> debian/lightdm.prerm quite obviously attempts to remove itself from
> the display manager set.

Can it be that that script was not updated when we switched to systemd?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.