'do-release-upgrade -d' throws python tracebacks, causes upgrade to fail.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Running 'do-release-upgrade -d' throws a python traceback in Ubuntu 19.10. It appears it may be a python2/3 issue as it relates to unicode decoding
$ lsb_release -rd
Description: Ubuntu 19.10
Release: 19.10
update-
Installed: 1:19.04.8
I expect the upgrade process to not crash.
It crashes with:
~$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1,554 B]
Get:2 Upgrade tool [1,344 kB]
Fetched 1,346 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
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-
(r.version for r in di.get_
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
=== Command terminated with exit status 1 (Tue Apr 28 14:14:46 2020) ===
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.3.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.8
Architecture: amd64
CrashDB: ubuntu
Date: Tue Apr 28 14:11:43 2020
InstallationDate: Installed on 2019-02-19 (434 days ago)
InstallationMedia: Ubuntu-Server 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-
Symptom: ubuntu-
UpgradeStatus: Upgraded to eoan on 2020-04-28 (0 days ago)
VarLogDistupgra
Log time: 2020-04-28 14:10:03.669721
Log time: 2020-04-28 14:10:10.527782
This is likely because you have a pip module named distro-info installed which is either out of date or does not support contain information about releases of Ubuntu. I'm marking this as a duplicate of bug 1848829.