[Bug 2144546] Re: GLib.markup_escape_text TypeError in DistUpgradeViewGtk3
Launchpad Bug Tracker
2144546 at bugs.launchpad.net
Fri Mar 27 22:06:41 UTC 2026
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: ubuntu-release-upgrader (Ubuntu)
Status: New => Confirmed
--
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/2144546
Title:
GLib.markup_escape_text TypeError in DistUpgradeViewGtk3
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Bug description:
Location: DistUpgradeViewGtk3.py, line 714, in confirmChanges()
Error:
TypeError: Argument 0 does not allow None as a value
Cause:
confirmChanges() passes the result of getattr(pkg.candidate, "summary", None) to GLib.markup_escape_text(). When a package has no candidate or no summary, this is None. GLib.markup_escape_text() expects a string and does not accept None, so it raises the above TypeError.
When it happens:
During a distribution upgrade or partial upgrade when the GTK3 UI shows the confirmation dialog and one of the packages in the change list has a missing or empty summary.
Impact:
The upgrade UI crashes instead of showing the confirmation dialog, blocking the upgrade.
Fix:
Ensure a string is always passed to GLib.markup_escape_text(), e.g. by using an empty string when the summary is None:
GLib.markup_escape_text(getattr(pkg.candidate, "summary", None) or "")
Status:
No matching bug found on Launchpad; this appears to be a new report.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2144546/+subscriptions
More information about the foundations-bugs
mailing list