[Bug 1965568] Re: missing dependency on python3-dbus

Launchpad Bug Tracker 1965568 at bugs.launchpad.net
Sat May 14 10:46:56 UTC 2022


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

---------------
ubuntu-release-upgrader (1:22.10.2) kinetic; urgency=medium

  * DistUpgrade: Gracefully handle missing dbus module (LP: #1965568).
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <nick.rosbrook at canonical.com>  Mon, 09 May 2022
12:16:49 -0400

** Changed in: ubuntu-release-upgrader (Ubuntu Kinetic)
       Status: Triaged => 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/1965568

Title:
  missing dependency on python3-dbus

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

Bug description:
  [Impact]

  If a user does not have the python3-dbus package installed, the
  upgrade will fail trying to `import dbus`.

  [Test Plan]

  * On an Impish host, remove python3-dbus. Note that
  python3-distupgrade is NOT listed in the warning from dpkg.

    $ sudo dpkg -r --force-depends python3-dbus

  * Attempt an upgrade, and observe the "ModuleNotFoundError: No module
  named 'dbus'" exception.

    $ do-release-upgrade

  [Where problems could occur]

  The patch moves the `import dbus` statement to later in the code, so
  if another part of that source file needed the dbus module, exceptions
  would occur.

  [Original Description]

  When I try to execute `do-release-upgrade -d` on a 20.04 system, the
  following fatal error occured.

  Traceback (most recent call last):

  File "/tmp/ubuntu-release-upgrader-yqb1e837/jammy", line 8, in
  <module>
  sys.exit(main())

  File
  "/tmp/ubuntu-release-upgrader-yqb1e837/DistUpgrade/DistUpgradeMain.py",
  line 222, in main
  from .DistUpgradeController import DistUpgradeController

  File
  "/tmp/ubuntu-release-upgrader-yqb1e837/DistUpgrade/DistUpgradeController.py",
  line 25, in <module>
  import dbus

  ModuleNotFoundError: No module named 'dbus'

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




More information about the foundations-bugs mailing list