[Bug 1874250] Re: do-release-upgrade fails 19.10->20.04 AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

David S 1874250 at bugs.launchpad.net
Fri Apr 24 01:43:41 UTC 2020


update-manager -c -d                                                                                        39.6s  Thu 23 Apr 2020 09:33:17 PM EDT
WARNING:root:estimate_kernel_initrd_size_in_boot() returned '0' for kernel?
WARNING:root:estimate_kernel_initrd_size_in_boot() returned '0' for initrd?
Checking for a new Ubuntu release
Checking for a new Ubuntu release
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit2 as WebKit
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
extracting 'focal.tar.gz'
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 186, in _get_from_and_to_version
    di.version('%s' % self.controller.fromDist).split()[0]
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/focal", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeController.py", line 2082, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeController.py", line 1919, in fullUpgrade
    if not self.doPostInitialUpdate():
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeController.py", line 925, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 97, in run
    func()
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 116, in focalPostInitialUpdate
    self._get_from_and_to_version()
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 192, in _get_from_and_to_version
    (r.version for r in di.get_all("object")
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
    self.write(f)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
    block = f.read(1048576)
  File "/usr/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
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-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 186, in _get_from_and_to_version
    di.version('%s' % self.controller.fromDist).split()[0]
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/focal", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeController.py", line 2082, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeController.py", line 1919, in fullUpgrade
    if not self.doPostInitialUpdate():
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeController.py", line 925, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 97, in run
    func()
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 116, in focalPostInitialUpdate
    self._get_from_and_to_version()
  File "/tmp/ubuntu-release-upgrader-96b2bn8c/DistUpgrade/DistUpgradeQuirks.py", line 192, in _get_from_and_to_version
    (r.version for r in di.get_all("object")
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'

-- 
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/1874250

Title:
  do-release-upgrade fails 19.10->20.04 AttributeError:
  'UbuntuDistroInfo' object has no attribute 'version'

Status in ubuntu-release-upgrader package in Ubuntu:
  Incomplete

Bug description:
  ➜  ~ sudo do-release-upgrade -d
  Checking for a new Ubuntu release
  Get:1 Upgrade tool signature [1554 B]
  Get:2 Upgrade tool [1344 kB]
  Fetched 1346 kB in 0s (0 B/s)
  authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
  extracting 'focal.tar.gz'
                                                                                                               81,25         Bot
  Building dependency tree
  Reading state information... Done

  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-dtwszzo7/DistUpgrade/DistUpgradeQuirks.py", line 186, in _get_from_and_to_version
      di.version('%s' % self.controller.fromDist).split()[0]
  AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-dtwszzo7/focal", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-dtwszzo7/DistUpgrade/DistUpgradeMain.py", line 238, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-dtwszzo7/DistUpgrade/DistUpgradeController.py", line 2082, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-dtwszzo7/DistUpgrade/DistUpgradeController.py", line 1919, in fullUpgrade
      if not self.doPostInitialUpdate():
  # cleanup[1] sre_constants
  # cleanup[1] re
  # cleanup[1] _codecs
  # cleanup[1] _warnings
  # cleanup[1] zipimport
  # cleanup[1] _sysconfigdata
  # cleanup[1] encodings.utf_8
  # cleanup[1] codecs
  # cleanup[1] readline
  # cleanup[1] _sysconfigdata_nd
  # cleanup[1] _locale
  # cleanup[1] sitecustomize
  # cleanup[1] signal
  # cleanup[1] traceback
  # cleanup[1] posix
  # cleanup[1] encodings.aliases
  # cleanup[1] exceptions
  # cleanup[1] _weakref
  # cleanup[1] sre_compile
  # cleanup[1] _sre
  # cleanup[1] sre_parse
  # cleanup[2] copy_reg
  # cleanup[2] posixpath
  # cleanup[2] errno
  # cleanup[2] _abcoll
  # cleanup[2] types
  # cleanup[2] genericpath
  # cleanup[2] stat
  # cleanup[2] warnings
  # cleanup[2] UserDict
  # cleanup[2] os.path
  # cleanup[2] linecache
  # cleanup[2] os
  # cleanup sys
  # cleanup __builtin__
  # cleanup ints: 19 unfreed ints
  # cleanup floats
  ➜  ~ type python
  python is /usr/bin/python
  ➜  ~ sudo do-release-upgrade -d
  Checking for a new Ubuntu release
  Get:1 Upgrade tool signature [1554 B]
  Get:2 Upgrade tool [1344 kB]
  Fetched 1346 kB in 0s (0 B/s)
  authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
  extracting 'focal.tar.gz'

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: ubuntu-release-upgrader-core 1:19.10.15.4
  ProcVersionSignature: Ubuntu 5.3.0-46.38-generic 5.3.18
  Uname: Linux 5.3.0-46-generic x86_64
  ApportVersion: 2.20.11-0ubuntu8.8
  Architecture: amd64
  CrashDB: ubuntu
  Date: Wed Apr 22 12:02:00 2020
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to eoan on 2020-04-22 (0 days ago)
  VarLogDistupgradeAptclonesystemstate.tar.gz:
   Error: command ['pkexec', 'cat', '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'] failed with exit code 127: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
   Error executing command as another user: Not authorized
   
   This incident has been reported.
  VarLogDistupgradeAptlog:
   Log time: 2020-04-22 11:57:30.093261
   Log time: 2020-04-22 11:57:32.463320
  mtime.conffile..etc.update-manager.release-upgrades: 2019-03-06T13:00:00.153336

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



More information about the foundations-bugs mailing list