do-release-upgrade crashed with AttributeError in _replaceDebsWithSnaps(): 'UbuntuDistroInfo' object has no attribute 'version'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray |
Bug Description
python3-distro-info doesn't have the ability to "Support getting release version by codename in the Perl and Python API" as that appeared in distro-info (0.21) which is only available in disco.
ProblemType: Crash
DistroRelease: Ubuntu 19.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.15.0-48-generic x86_64
Architecture: amd64
CrashDB: ubuntu
Date: Thu Jun 20 11:58:49 2019
ExecutablePath: /usr/bin/
ExecutableTimes
InstallationDate: Installed on 2018-08-13 (311 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
InterpreterPath: /usr/bin/python3.6
PackageArchitec
ProcCmdline: /usr/bin/python3 ./eoan --frontend DistUpgradeViewText
ProcCwd: /tmp/u-r-u-eoan
Python3Details: /usr/bin/python3.7, Python 3.7.3, python3-minimal, 3.7.3-1
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: ubuntu-
Title: do-release-upgrade crashed with AttributeError in _replaceDebsWit
UpgradeStatus: Upgraded to eoan on 2019-06-20 (0 days ago)
UserGroups:
Here's the traceback:
Traceback (most recent call last): exit(main( )) r-u-eoan/ DistUpgrade/ DistUpgradeMain .py", line 238, in main r-u-eoan/ DistUpgrade/ DistUpgradeCont roller. py", line 2086, in run r-u-eoan/ DistUpgrade/ DistUpgradeCont roller. py", line 2063, in fullUpgrade doPostUpgrade( ) r-u-eoan/ DistUpgrade/ DistUpgradeCont roller. py", line 1428, in doPostUpgrade quirks. run("PostUpgrad e") r-u-eoan/ DistUpgrade/ DistUpgradeQuir ks.py", line 93, in run r-u-eoan/ DistUpgrade/ DistUpgradeQuir ks.py", line 132, in eoanPostUpgrade _replaceDebsWit hSnaps( ) r-u-eoan/ DistUpgrade/ DistUpgradeQuir ks.py", line 444, in _replaceDebsWit hSnaps .fromDist) .split( )[0]
File "./eoan", line 8, in <module>
sys.
File "/tmp/u-
if app.run():
File "/tmp/u-
return self.fullUpgrade()
File "/tmp/u-
self.
File "/tmp/u-
self.
File "/tmp/u-
func()
File "/tmp/u-
self.
File "/tmp/u-
fromVersion = di.version('%s' % self.controller
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'