[Bug 2096824] Re: apport_excepthook called with incorrect number of arguments

Launchpad Bug Tracker 2096824 at bugs.launchpad.net
Thu Feb 6 23:40:17 UTC 2025


This bug was fixed in the package ubuntu-release-upgrader - 1:25.04.6

---------------
ubuntu-release-upgrader (1:25.04.6) plucky; urgency=medium

  * all: replace remaining uses of lsb_release
  * DistUpgrade: define From= as list of supported upgrade paths (LP: #2075969)
  * DistUpgradeCache: remove remaining aufs logic
  * DistUpgradeApport: fix call to apport_excepthook (LP: #2096824)
  * Run pre-build.sh: updating mirrors and translations.

 -- Nick Rosbrook <enr0n at ubuntu.com>  Thu, 06 Feb 2025 15:38:50 -0500

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  apport_excepthook called with incorrect number of arguments

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Noble:
  Triaged

Bug description:
  When there was a failure to handle an upgrade, apport_crash() gets
  called to handle it and it calls apport_excepthook(), but it is
  missing an argument in that call:

  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-rj__cqhy/DistUpgrade/DistUpgradeViewText.py", line 138, in _handleException
      apport_crash(type, value, tb)
    File "/tmp/ubuntu-release-upgrader-rj__cqhy/DistUpgrade/DistUpgradeApport.py", line 57, in apport_crash
      apport_excepthook(type, value, tb)
  TypeError: apport_excepthook() missing 1 required positional argument: 'exc_tb'

  In my case, that was because I had Apt::Default-Release "noble"; in my
  apt.conf. That issue is on me and I've fixed that misconfiguration.
  However, this bug is about the second exception that was triggered
  when trying to handle the first exception. It seems that
  apport_excepthook is missing the binary argument. Maybe apport_crash()
  needs to be passing in sys.argv[0] in DistUpgradeApport.py on it's
  call to apport_excepthook()??

  This crash can also be seen in another, recent bug report:

  https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-
  upgrader/+bug/2064955

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




More information about the foundations-bugs mailing list