/usr/bin/update-manager:aptdaemon.errors.AptDaemonError(org.debian.apt):_convert_dbus_exception:cancel:__call__:call_blocking:_on_clicked:_deferable:_convert_dbus_exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Closing the GUI of update-manager tries to cancel the running transaction then raises an Exception since cancellation fails.
Users experience crashes after closing the GUI and many of them send error reports about the issue while nothing can be done about those transactions.
The fix tries to close the transaction when it seems to be possible to cancel it and ignores the exception when cancellation fails.
[Test Case]
1. Set up a fully updated system then downgrade a few packages and install autoremovable ones to create work for u-m:
$ sudo eatmydata apt install -y --allow-downgrades linux-headers-
2. Start update-manager from the terminal and press "Install Now".
3. While the transaction is running close u-m's GUI with the (X).
The fixed u-m GUI just closes, while the not fixed ones show exceptions. With the fix the GUI closes, but the transaction is run to completion in the background.
[Regression Potential]
There is not a lot of room for regressions. As usual update-manager may fail to start due to syntax errors, but ignoring the exception can hardly cause any trouble.
Users may find it surprising that the transaction proceeds in the background, but this is still better than trowing the exception like before.
[Other Info]
* Anything else you think is useful to include
* Anticipate questions from users, SRU, +1 maintenance, security teams and the Technical Board
* and address these questions in advance
The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager. This problem was most recently seen with package version 1:18.10.4, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
Related branches
- Julian Andres Klode: Approve
- Brian Murray: Pending requested
- alex: Pending requested
- Ubuntu Core Development Team: Pending requested
-
Diff: 176 lines (+89/-31)5 files modifiedUpdateManager/backend/InstallBackendAptdaemon.py (+7/-2)
UpdateManager/backend/__init__.py (+26/-6)
debian/changelog (+11/-0)
tests/test_backend_error.py (+45/-0)
tests/test_update_error.py (+0/-23)
- Julian Andres Klode: Approve
- Brian Murray: Pending requested
-
Diff: 221 lines (+102/-36)7 files modifiedUpdateManager/Core/UpdateList.py (+7/-2)
UpdateManager/backend/InstallBackendAptdaemon.py (+7/-2)
UpdateManager/backend/__init__.py (+28/-8)
debian/changelog (+14/-0)
tests/test_backend_error.py (+45/-0)
tests/test_pep8.py (+1/-1)
tests/test_update_error.py (+0/-23)
description: | updated |
This bug was fixed in the package update-manager - 1:18.10.10
---------------
update-manager (1:18.10.10) cosmic; urgency=medium
* Stop lazy import of InstallBackends.
Lazy imports made update-manager crash when an update-manager
update changed the backend API and an updated incompatible backend
was loaded to the not updated running update-manager process. (LP: #1795898)
* Cancel transaction on exit only when Cancel button is active.
Also ignore exception when cancellation fails. (LP: #1790670)
-- Balint Reczey <email address hidden> Thu, 04 Oct 2018 21:06:35 +0200