distribution upgrade failed due pip install of distro-info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Brian Murray | ||
Groovy |
Fix Released
|
Undecided
|
Brian Murray | ||
Hirsute |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
Users with a python pip installation of distro-info are not able to upgrade from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS because the pip version of distro-info does not contain information which the Ubuntu version of the package does. More generally, locally installed python packages can interfere with the release upgrade process due to how the process is started.
[Test Case]
The pip version of distro-info which is available Ubuntu 20.04 LTS is not installable as the distro-info package is a greater version, however one can workaround this by manually removing python3-distro-info (sudo dpkg -r --force-depends python3-
1) on an Ubuntu 18.04 LTS system install pip
2) pip install distro-info
3) Run do-release-upgrade
4) Observe a crash with a Traceback re distro-info and get_all
With the version of the release-upgrader from -proposed you will not experience such a crash.
[Regression Potential]
The change is to start python3 with "-s" which will not add the user side directorty to sys.path. This is a safe change but we should still ensure that upgrades succesfully complete to the next release of Ubuntu. Which should also check and ensure that all packages and snaps are updated.
Original Description
-------
sudo update-manager -d
[sudo] password for frazier:
(eoan:2867): Gtk-WARNING **: 20:10:31.210: Theme parsing error: gtk.css:45:6: Expected a valid selector
Traceback (most recent call last):
File "/tmp/ubuntu-
di.version('%s' % self.controller
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.doPostInit
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
func()
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
(r.version for r in di.get_
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self.write(f)
File "/usr/lib/
block = f.read(1048576)
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-
di.version('%s' % self.controller
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.doPostInit
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
func()
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
(r.version for r in di.get_
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
ProblemType: BugDistroRelease: Ubuntu 19.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.0.0-32-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity:Unity7:ubuntu
Date: Fri Oct 18 20:06:04 2019
InstallationDate: Installed on 2018-05-07 (529 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitec
Symptom: ubuntu-
UpgradeStatus: Upgraded to disco on 2019-10-19 (0 days ago)
VarLogDistupgra
Log time: 2019-10-18 20:02:43.946172
Log time: 2019-10-18 20:02:52.524168
VarLogDistupgra
summary: |
- upgrade from 19.04 to 19.10 fails + upgrade from 19.04 to 19.10 fails due to issues with distro-info |
summary: |
- upgrade from 19.04 to 19.10 fails due to issues with distro-info + upgrade from 19.04 to 19.10 fails due pip install of distro-info |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Expired → Triaged |
importance: | Undecided → Low |
summary: |
- upgrade from 19.04 to 19.10 failed due pip install of distro-info + distribution upgrade failed due pip install of distro-info |
tags: | added: fr-899 |
tags: | removed: rls-gg-incoming |
Changed in ubuntu-release-upgrader (Ubuntu Groovy): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | New → In Progress |
Changed in ubuntu-release-upgrader (Ubuntu Groovy): | |
status: | New → In Progress |
description: | updated |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.