universe missing after bionic->cosmic do-release-upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Critical
|
Brian Murray | ||
Bionic |
Fix Released
|
Critical
|
Unassigned | ||
Cosmic |
Fix Released
|
Critical
|
Unassigned |
Bug Description
[Impact]
If there is a network hiccup at the right moment it's possible that some sources.list entries will be disabled when a release upgrade is calculated and then people could upgrade with surprising results e.g. universe being missing.
[Test Case]
This is somewhat convoluted as we need to create the network error only when a specific line is is being tested by the dist-upgrader.
1) Use a system on xenial or bionic and ensure prompt is set appropriately (lts for xenial, normal for bionic)
2) Edit your /etc/apt/
3) Run do-release-upgrade
4) Cancel the release upgrade
5) cd to /tmp/ubuntu-
6) edit DistUpgradeCont
7) run 'sudo ./$release-
8) wait until you receive the message regarding quantities of packages to install, upgrade, etc
9) look at /etc/apt/
With the release-upgrader from -proposed you'll need to follow the same steps and you'll notice that the lines with universe are not disabled.
[Regression Potential]
Because we are checking each unique uri in sources.list only one time its possible that if the first check fails then the upgrade will fail to be calculated. That is better than upgrading and having components disabled though.
[Original Description]
I took a bionic system and stepped through bionic-
Upon finishing I noticed that universe was "gone" and all packages from universe were removed from the system. Based on the files on my system, it looks like it happened during the bionic->cosmic upgrade. You'll see in the sources.list that cosmic-updates universe pocket is that but not cosmic universe.
ProblemType: BugDistroRelease: Ubuntu 19.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.0.0-8-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu23
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 2 16:04:34 2019
InstallationDate: Installed on 2018-07-24 (252 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180724)
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=
Symptom: ubuntu-
UpgradeStatus: Upgraded to disco on 2019-04-02 (0 days ago)
VarLogDistupgra
INFO:root:
INFO:root:No xorg.conf, exiting
mtime.conffile.
Related branches
- Steve Langasek: Needs Fixing
-
Diff: 144 lines (+62/-10)3 files modifiedDistUpgrade/DistUpgradeController.py (+15/-5)
debian/changelog (+9/-0)
tests/test_sources_list.py (+38/-5)
summary: |
- universe missing after do-release-upgrade + universe missing after bionic->cosmic do-release-upgrade |
tags: | added: cosmic2disco |
tags: | added: id-5ca3d1e6bc6a797ad8a39c67 |
tags: | added: regression-update |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in ubuntu-release-upgrader (Ubuntu Bionic): | |
importance: | Undecided → Critical |
Changed in ubuntu-release-upgrader (Ubuntu Cosmic): | |
importance: | Undecided → Critical |
Changed in ubuntu-release-upgrader (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in ubuntu-release-upgrader (Ubuntu Cosmic): | |
status: | New → Triaged |
The timestamp on /etc/apt/ sources. list.distUpgrad e wouldn't tell us anything useful since it will have been modified as part of the cosmic->disco upgrade; but the fact that it shows universe commented out with bionic in the series, not cosmic, confirms that this was already disabled by the time the bionic->cosmic dist-upgrade finished, otherwise u-r-u would've rewritten the lines as part of that upgrade to show cosmic rather than bionic.