lightdm install prompts about default dm even though debconf value set

Bug #1616905 reported by Alexander Skwar
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Won't Fix
Undecided
Unassigned
lightdm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've got gdm3-3.18.3-0ubuntu2 installed on a Xenial 16.04 system with apt. Now I need to install lightdm-1.18.2-0ubuntu2 as well and also need to avoid being asked any questions. But the system asks me, what default DM (display manager) to use.

Copying from Bug #1020770, I set some values with debconf.

$ echo "debconf debconf/priority select critical
lightdm shared/default-x-display-manager select lightdm
gdm3 shared/default-x-display-manager select lightdm" | sudo debconf-set-selections -v
info: Trying to set 'debconf/priority' [select] to 'critical'
info: Loading answer for 'debconf/priority'
info: Trying to set 'shared/default-x-display-manager' [select] to 'lightdm'
info: Loading answer for 'shared/default-x-display-manager'
info: Trying to set 'shared/default-x-display-manager' [select] to 'lightdm'
info: Loading answer for 'shared/default-x-display-manager'

When I now install lightdm (or reconfigure it), it is ignoring that I set the value to "lightdm". I confirmed that by having a look at /etc/X11/default-display-manager:

$ cat /etc/X11/default-display-manager
/usr/sbin/gdm3

When I manually answer the DM question and give "lightdm" as the answer, the file contains "/usr/sbin/lightdm".

dpkg-reconfigure in non-interactive mode:

$ sudo env DEBCONF_DEBUG=developer dpkg-reconfigure -fnoninteractive lightdm
debconf (developer): starting /var/lib/dpkg/info/lightdm.prerm upgrade 1.18.2-0ubuntu2
debconf (developer): starting /var/lib/dpkg/info/lightdm.config reconfigure 1.18.2-0ubuntu2
debconf (developer): <-- METAGET shared/default-x-display-manager owners
debconf (developer): --> 0 gdm, gdm3, lightdm, slim
debconf (developer): <-- METAGET shared/default-x-display-manager choices
debconf (developer): --> 0 gdm, gdm3, lightdm, slim
debconf (developer): <-- SET shared/default-x-display-manager gdm3
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT high shared/default-x-display-manager
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET shared/default-x-display-manager
debconf (developer): --> 0 gdm3
debconf (developer): starting /var/lib/dpkg/info/lightdm.postinst configure 1.18.2-0ubuntu2
debconf (developer): <-- STOP

And in interactive mode:

$ sudo env DEBCONF_DEBUG=developer dpkg-reconfigure lightdm
debconf (developer): starting /var/lib/dpkg/info/lightdm.prerm upgrade 1.18.2-0ubuntu2
debconf (developer): starting /var/lib/dpkg/info/lightdm.config reconfigure 1.18.2-0ubuntu2
debconf (developer): <-- METAGET shared/default-x-display-manager owners
debconf (developer): --> 0 gdm, gdm3, lightdm, slim
debconf (developer): <-- METAGET shared/default-x-display-manager choices
debconf (developer): --> 0 gdm, gdm3, lightdm, slim
debconf (developer): <-- SET shared/default-x-display-manager gdm3
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT high shared/default-x-display-manager
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET shared/default-x-display-manager
debconf (developer): --> 0 lightdm
debconf (developer): starting /var/lib/dpkg/info/lightdm.postinst configure 1.18.2-0ubuntu2
debconf (developer): <-- GET shared/default-x-display-manager
debconf (developer): --> 0 lightdm
debconf (developer): <-- GET lightdm/daemon_name
debconf (developer): --> 0 /usr/sbin/lightdm
debconf (developer): <-- STOP

To me, this is a bug in lightdm (or gdm3, which has the same code and problem), because it doesn't seem to honor the values set with debconf and thus makes it impossible to install without having to manually answer questions.

Tags: xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdm (Ubuntu):
status: New → Confirmed
Changed in lightdm (Ubuntu):
status: New → Confirmed
tags: added: xenial
affects: gdm (Ubuntu) → gdm3 (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu GNOME 16.04 (xenial) reached end-of-life in April 2019.

https://ubuntugnome.org/ubuntu-gnome-16-04-lts-is-here/
https://wiki.ubuntu.com/XenialXerus/ReleaseNotes/UbuntuGNOME

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in gdm3 (Ubuntu):
status: Confirmed → Won't Fix
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.