[Bug 1841675] Re: do-release-upgrade crashed with AttributeError in tryMarkObsoleteForRemoval(): 'Package' object has no attribute 'section'

Brian Murray brian at ubuntu.com
Thu Aug 29 16:15:39 UTC 2019


This appears in one of the duplicate bugs:

Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) libedata-book-1.2-25:amd64 < 3.32.2-2 @ii mK Ib >
Broken libedata-book-1.2-25:amd64 Depends on libebackend-1.2-10:amd64 < 3.32.2-2 -> 3.33.4-1 @ii umU > (= 3.32.2-2)
  Considering libebackend-1.2-10:amd64 8 as a solution to libedata-book-1.2-25:amd64 1
  Removing libedata-book-1.2-25:amd64 rather than change libebackend-1.2-10:amd64
Investigating (0) libebook-1.2-19:amd64 < 3.32.2-2 @ii mK Ib >
Broken libebook-1.2-19:amd64 Depends on libedata-book-1.2-25:amd64 < 3.32.2-2 @ii mR > (= 3.32.2-2)
  Considering libedata-book-1.2-25:amd64 1 as a solution to libebook-1.2-19:amd64 0
  Removing libebook-1.2-19:amd64 rather than change libedata-book-1.2-25:amd64
Investigating (0) libedata-cal-1.2-29:amd64 < 3.32.2-2 @ii mK Ib >
Broken libedata-cal-1.2-29:amd64 Depends on libebackend-1.2-10:amd64 < 3.32.2-2 -> 3.33.4-1 @ii umU > (= 3.32.2-2)
  Considering libebackend-1.2-10:amd64 8 as a solution to libedata-cal-1.2-29:amd64 0
  Removing libedata-cal-1.2-29:amd64 rather than change libebackend-1.2-10:amd64
Done
ERROR:root:not handled exception:
Traceback (most recent call last):

  File "/usr/lib/ubuntu-release-upgrader/do-partial-upgrade", line 114, in <module>
    controller.doPartialUpgrade()

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 2095, in doPartialUpgrade
    if not self.askDistUpgrade():

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 1154, in askDistUpgrade
    changes = self.calcDistUpgrade()

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 1117, in calcDistUpgrade
    if not self.cache.distUpgrade(self._view, self.serverMode, self._partialUpgrade):

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeCache.py", line 241, in wrapper
    res = f(*args, **kwargs)

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeCache.py", line 609, in distUpgrade
    self.keep_installed_rule()

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeCache.py", line 463, in keep_installed_rule
    and pkg.marked_delete and pkg.section == section):

AttributeError: 'Package' object has no attribute 'section'

** Also affects: ubuntu-release-upgrader (Ubuntu Eoan)
   Importance: Medium
       Status: Confirmed

** Tags removed: rls-ee-incoming

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

Title:
  do-release-upgrade crashed with AttributeError in
  tryMarkObsoleteForRemoval(): 'Package' object has no attribute
  'section'

Status in ubuntu-release-upgrader package in Ubuntu:
  Confirmed
Status in ubuntu-release-upgrader source package in Eoan:
  Confirmed

Bug description:
  After every startup. System is up-to-date

  ProblemType: Crash
  DistroRelease: Ubuntu 19.10
  Package: ubuntu-release-upgrader-core 1:19.10.10
  ProcVersionSignature: Ubuntu 5.2.0-13.14-generic 5.2.8
  Uname: Linux 5.2.0-13-generic x86_64
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  CrashDB: ubuntu
  Date: Tue Aug 27 23:22:58 2019
  ExecutablePath: /usr/bin/do-release-upgrade
  InstallationDate: Installed on 2019-08-20 (7 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190819)
  InterpreterPath: /usr/bin/python3.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/do-partial-upgrade --frontend=DistUpgradeViewGtk3
  Python3Details: /usr/bin/python3.7, Python 3.7.4, python3-minimal, 3.7.3-1
  PythonArgs: ['/usr/bin/do-release-upgrade', '--frontend=DistUpgradeViewGtk3']
  PythonDetails: /usr/bin/python2.7, Python 2.7.16+, python-minimal, 2.7.16-1
  SourcePackage: ubuntu-release-upgrader
  Title: do-release-upgrade crashed with AttributeError in tryMarkObsoleteForRemoval(): 'Package' object has no attribute 'section'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  VarLogDistupgradeTermlog:

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



More information about the foundations-bugs mailing list