[Bug 2150239] Re: Software Updates hangs / crashes when toggling checkboxes in the list of available updates
Chris
2150239 at bugs.launchpad.net
Tue May 19 05:04:49 UTC 2026
In UpdatesAvailable.py:toggle_from_items(), when the user toggles an update checkbox, the code calls apt_pkg.ProblemResolver.resolve_by_keep() to fix any dependency breakage. If the system has held broken packages, this throws apt_pkg.Error: Unable to correct problems, you have held broken packages — which is unhandled and crashes the entire Software Updater UI.
Full traceback from the reporter's journal:
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 1097, in on_update_toggled
self.toggle_from_items(data.group.items)
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 1136, in toggle_from_items
Fix.resolve_by_keep()
apt_pkg.Error: E:Unable to correct problems, you have held broken packages.
Wrap the resolve_by_keep() call in try/except apt_pkg.Error. If the resolver fails, log a warning and continue — the UI stays responsive and the user can still work with the update list. The worst case is that the package selection remains in a broken state, which is strictly better than the entire application crashing.
** Patch added: "update-manager-resolve-crash.patch"
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2150239/+attachment/5971441/+files/update-manager-resolve-crash.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2150239
Title:
Software Updates hangs / crashes when toggling checkboxes in the list
of available updates
Status in update-manager package in Ubuntu:
New
Bug description:
With a list of updates loaded in the list view of Software Updater,
toggling checkboxes is very inconsistent. It often lags or just hangs.
I see in the journal for instance,
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: Traceback (most recent call last):
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 1097, in on_update_toggled
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: self.toggle_from_items(data.group.items)
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 1136, in toggle_from_items
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: Fix.resolve_by_keep()
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: ~~~~~~~~~~~~~~~~~~~^^
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: apt_pkg.Error: E:Unable to correct problems, you have held broken packages.
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: /usr/lib/python3/dist-packages/gi/overrides/GObject.py:646: Warning: ../../../gobject/gsignal.c:2723: instance '0x1fc83390' has no handler with id '7734'
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: return func(*args, **kwargs)
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: /usr/lib/python3/dist-packages/gi/overrides/GObject.py:646: Warning: ../../../gobject/gsignal.c:2723: instance '0x1ed27c50' has no handler with id '7717'
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: return func(*args, **kwargs)
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: /usr/lib/python3/dist-packages/gi/overrides/GObject.py:646: Warning: ../../../gobject/gsignal.c:2723: instance '0x200b1ee0' has no handler with id '7748'
Apr 24 16:13:26 workstation update-manager.desktop[1300386]: return func(*args, **kwargs)
This is on Ubuntu 26.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2150239/+subscriptions
More information about the foundations-bugs
mailing list