← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1795898] Re: TypeError: _action_done() got an unexpected keyword argument 'trans_failed'

 

This bug was fixed in the package update-manager - 1:16.04.15

---------------
update-manager (1:16.04.15) xenial; urgency=medium

  * Keep or delete packages after looping over all of them.
    This prevents the resolver from changing the packages in the loop resulting
    in not keeping some phased packages back from being upgraded. (LP: #1072136)
  * 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)
  * Make commit()'s last parameter optional for avoiding crash on upgrade
    (LP: #1771894)

 -- Balint Reczey <rbalint@xxxxxxxxxx>  Thu, 04 Oct 2018 21:51:10 +0200

** Changed in: update-manager (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1795898

Title:
  TypeError: _action_done() got an unexpected keyword argument
  'trans_failed'

Status in update-manager package in Ubuntu:
  Fix Released
Status in update-manager source package in Xenial:
  Fix Released
Status in update-manager source package in Bionic:
  Fix Released

Bug description:
  [Impact]

  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.

  The issue causes crashes upon update-manager updates harming the
  upgrade experience for users.

  The fix avoids lazy loading of the backend modules but still honors
  the backend selection options.

  [Test Case]

  1. Start with a fully upgraded system and downgrade a few packages to let u-m upgrade them:
  $ sudo eatmydata apt install -y --allow-downgrades  gnome-software=3.28.1-0ubuntu4 gnome-software-common=3.28.1-0ubuntu4

  2. Start u-m with:
   $ update-manager --no-update

  3. Make a syntax error in /usr/lib/python3/dist-
  packages/UpdateManager/backend/InstallBackendAptdaemon.py

  4. Press "Install Now" on u-m GUI.
   The fixed u-m will successfully perform the installation, the unfixed one will fail with SyntaxError.

  [Regression Potential]

  Wrong changes to the backend import/selection logic could make u-m
  unable to find the available backends, but in my testing the fixed
  version could properly find both aptdaemon and synaptic when they were
  present.

  [Original Bug Text]
   
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 242, in _on_finished
      trans_failed=trans_failed)
  TypeError: _action_done() got an unexpected keyword argument 'trans_failed'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1795898/+subscriptions