ubuntu-release-upgrader should purge obsolete packages, not just remove them
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Bionic |
Fix Released
|
High
|
Brian Murray |
Bug Description
[Justification]
When an obsolete package leaves conffiles behind, these conffiles can sometimes interact poorly with the system and cause bugs. Since the obsoleted package no longer exists in the targeted release, this can be difficult to resolve by applying fixes to a package. Furthermore, removing-
Wherever possible, we should strive to make an upgraded system look exactly like a newly installed system, to minimize the combinatorics of configurations that must be supported.
Examples of cases where this has been a problem in practice:
[Test case]
1. Do an upgrade from xenial with the release ubuntu-
2. Capture the list of packages that are in state 'rc' afterwards.
3. Do an equivalent upgrade with the -proposed ubuntu-
4. Confirm that the upgrade completes successfully.
5. Capture the list of packages that are in state 'rc' afterwards.
6. Confirm that there are fewer packages in state 'rc' in the second upgrade than the first.
7. Repeat all of the above with an upgrade from artful.
[Regression potential]
As a consequence of this, we will also be running a lot more postrm scripts with the 'purge' option on users desktops, so any bugs in those maintainer scripts will now be apparent as part of a release upgrade where before they were latent.
Related branches
- Brian Murray: Approve
-
Diff: 57 lines (+14/-2)4 files modifiedDistUpgrade/DistUpgradeConfigParser.py (+2/-2)
data/DistUpgrade.cfg (+1/-0)
data/DistUpgrade.cfg.xenial (+1/-0)
debian/changelog (+10/-0)
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | Undecided → High |
Changed in ubuntu-release-upgrader (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Triaged |
Changed in ubuntu-release-upgrader (Ubuntu Bionic): | |
status: | New → Triaged |
milestone: | none → ubuntu-18.04.1 |
tags: | added: id-5b1964140feb9335c992a173 |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in ubuntu-release-upgrader (Ubuntu Bionic): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
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 ] DistUpgradeCach e.py: clarify why a package is not removed.
* DistUpgrade/
-- Brian Murray <email address hidden> Wed, 27 Jun 2018 16:34:25 -0700