[Bug 1833753] Re: do-release-upgrade crashed with AttributeError in _replaceDebsWithSnaps(): 'UbuntuDistroInfo' object has no attribute 'version'

Brian Murray brian at ubuntu.com
Fri Jun 21 18:58:47 UTC 2019


Here's the traceback:

Traceback (most recent call last):
  File "./eoan", line 8, in <module>
    sys.exit(main())
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeController.py", line 2086, in run
    return self.fullUpgrade()
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeController.py", line 2063, in fullUpgrade
    self.doPostUpgrade()
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeController.py", line 1428, in doPostUpgrade
    self.quirks.run("PostUpgrade")
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeQuirks.py", line 93, in run
    func()
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeQuirks.py", line 132, in eoanPostUpgrade
    self._replaceDebsWithSnaps()
  File "/tmp/u-r-u-eoan/DistUpgrade/DistUpgradeQuirks.py", line 444, in _replaceDebsWithSnaps
    fromVersion = di.version('%s' % self.controller.fromDist).split()[0]
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: New => In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu)
   Importance: Undecided => High

** Changed in: ubuntu-release-upgrader (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1833753

Title:
  do-release-upgrade crashed with AttributeError in
  _replaceDebsWithSnaps(): 'UbuntuDistroInfo' object has no attribute
  'version'

Status in ubuntu-release-upgrader package in Ubuntu:
  In Progress

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-release-upgrader-core 1:19.10.8
  ProcVersionSignature: Ubuntu 4.15.0-48.51-generic 4.15.18
  Uname: Linux 4.15.0-48-generic x86_64
  Architecture: amd64
  CrashDB: ubuntu
  Date: Thu Jun 20 11:58:49 2019
  ExecutablePath: /usr/bin/do-release-upgrade
  ExecutableTimestamp: 1560873548
  InstallationDate: Installed on 2018-08-13 (311 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
  InterpreterPath: /usr/bin/python3.6
  PackageArchitecture: all
  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/bin/do-release-upgrade', '--frontend', 'DistUpgradeViewText']
  PythonDetails: N/A
  SourcePackage: ubuntu-release-upgrader
  Title: do-release-upgrade crashed with AttributeError in _replaceDebsWithSnaps(): 'UbuntuDistroInfo' object has no attribute 'version'
  UpgradeStatus: Upgraded to eoan on 2019-06-20 (0 days ago)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1833753/+subscriptions



More information about the foundations-bugs mailing list