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

Launchpad Bug Tracker 1965568 at bugs.launchpad.net
Mon Jun 6 22:59:48 UTC 2022


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

---------------
ubuntu-release-upgrader (1:22.04.11) jammy; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * DistUpgrade/DistUpgradeQuirks.py: Remove section of netplan
    config that is installed by default on Raspberry Pi and
    causes netplan failures after upgrade to jammy (LP: #1970761)

  [ Nick Rosbrook ]
  * DistUpgrade: Gracefully handle missing dbus module (LP: #1965568).
  * DistUpgrade: Do not show lock screen error if XDG_SESSION_TYPE is
    tty (LP: #1973785).
  * DistUpgrade: Add deb2snap entry for snapd-desktop-integration (LP: #1975747).
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <nick.rosbrook at canonical.com>  Thu, 26 May 2022
10:49:26 -0400

** Changed in: ubuntu-release-upgrader (Ubuntu Jammy)
       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/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:
  Fix Released
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