[Bug 1965568] Re: missing dependency on python3-dbus
Nick Rosbrook
1965568 at bugs.launchpad.net
Tue May 10 18:17:34 UTC 2022
** Description changed:
+ [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'
--
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:
Triaged
Status in ubuntu-release-upgrader source package in Jammy:
Triaged
Status in ubuntu-release-upgrader source package in Kinetic:
Triaged
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