purge conf files on removal of upstart (was session fails to start after an upgrade from xenial to bionic)

Bug #1749199 reported by Jean-Baptiste Lallement on 2018-02-13
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Critical
Dimitri John Ledkov
Bionic
Critical
Dimitri John Ledkov
xorg (Ubuntu)
Critical
Dimitri John Ledkov
Bionic
Critical
Dimitri John Ledkov

Bug Description

[Testcase]

1. Launch xenial lxd container
2. install x11-common upstart
3. do-release-upgrade to bionic
4. Upgrade to bionic removes upstart
5. upgrade to new x11-common, make sure the upstart snippets are gone from disk: /etc/X11/Xsession.d/00upstart
/etc/X11/Xsession.d/99upstart
6. for the new release-upgrader, check that upstart is purged, if user selects to remove packages at the end of the do-release-upgrade.

After an upgrade from Xenial to Bionic the session fails to start and returns immediately to the login screen.

There is this line in the journal
[...] /usr/lib/gdm3/gdm-x-session[3584]: /etc/X11/Xsession.d/99x11-common_start: ligne 5: /sbin/upstart: Aucun fichier ou dossier de ce type

(full journal from a failed attempt attached)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-session 3.26.1-0ubuntu9
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.8-0ubuntu8
Architecture: amd64
Date: Tue Feb 13 15:11:12 2018
InstallationDate: Installed on 2018-02-07 (6 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-session
UpgradeStatus: Upgraded to bionic on 2018-02-13 (0 days ago)

Related branches

Jean-Baptiste Lallement (jibel) wrote :

in /etc/X11/Xsession.d there are these 2 files:
00upstart
99upstart

The session starts after removing these 2 files.

summary: - Session fails to start after an upgrade from Xenial to Bionic
+ Session fails to start after an upgrade from Xenial to Bionic (leftover
+ from upstart)
Changed in gnome-session (Ubuntu):
importance: Undecided → Critical
status: New → Triaged
tags: added: rls-bb-incoming
summary: Session fails to start after an upgrade from Xenial to Bionic (leftover
- from upstart)
+ from upstart, uninstall it on upgrade)
Changed in upstart (Ubuntu):
importance: Undecided → Critical
status: New → Triaged

upstart should purge its conf files on removal.

no longer affects: gnome-session (Ubuntu)
summary: - Session fails to start after an upgrade from Xenial to Bionic (leftover
- from upstart, uninstall it on upgrade)
+ purge conf files on removal of upstart (was session fails to start after
+ an upgrade from xenial to bionic)
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Critical
status: New → Triaged
tags: added: id-5a84d0daccdf6dc3246140b9
Changed in upstart (Ubuntu Bionic):
status: Triaged → Won't Fix
Changed in xorg (Ubuntu Bionic):
status: New → Triaged
Steve Langasek (vorlon) on 2018-02-22
no longer affects: upstart (Ubuntu)
no longer affects: upstart (Ubuntu Bionic)
Changed in xorg (Ubuntu Bionic):
importance: Undecided → Critical
assignee: nobody → Dimitri John Ledkov (xnox)
tags: removed: rls-bb-incoming
description: updated
Changed in xorg (Ubuntu Bionic):
status: Triaged → Fix Committed
Changed in ubuntu-release-upgrader (Ubuntu Bionic):
assignee: nobody → Dimitri John Ledkov (xnox)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg - 1:7.7+19ubuntu5

---------------
xorg (1:7.7+19ubuntu5) bionic; urgency=medium

  * Cleanup upstart Xsession.d files, when upstart is removed, but not
    purged, and thus breaking graphical login after upgrades. LP: #1749199

 -- Dimitri John Ledkov <email address hidden> Thu, 22 Feb 2018 16:43:18 +0000

Changed in xorg (Ubuntu Bionic):
status: Fix Committed → Fix Released
Changed in ubuntu-release-upgrader (Ubuntu Bionic):
status: Triaged → In Progress
tags: added: id-5ab94216b63b7b701162c622
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers