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
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Critical
Dimitri John Ledkov
Bionic
Invalid
Critical
Dimitri John Ledkov
xorg (Ubuntu)
Fix Released
Critical
Dimitri John Ledkov
Bionic
Fix Released
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

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: Session fails to start after an upgrade from Xenial to Bionic (leftover from upstart)

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
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: Session fails to start after an upgrade from Xenial to Bionic (leftover from upstart, uninstall it on upgrade)

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)
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)
Revision history for this message
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
Changed in ubuntu-release-upgrader (Ubuntu):
status: In Progress → Invalid
Changed in ubuntu-release-upgrader (Ubuntu Bionic):
status: In Progress → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:18.10.3

---------------
ubuntu-release-upgrader (1:18.10.3) cosmic; urgency=medium

  [ Dimitri John Ledkov ]
  * Purge obsolete packages, if user agrees to remove obsolete
    packages. LP: #1749199
  * Make dist-upgrade.py work when PWD != datadir, by fixing the logic for
    finding and loading .release config files with datadir prepended
    first.

  [ Brian Murray ]
  * DistUpgrade/DistUpgradeCache.py: clarify why a package is not removed.

 -- Brian Murray <email address hidden> Wed, 27 Jun 2018 16:34:25 -0700

Changed in ubuntu-release-upgrader (Ubuntu):
status: Invalid → Fix Released
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.