/usr/lib/update-notifier/backend_helper.py:FileNotFoundError:/usr/lib/update-notifier/backend_helper.py@166:show_updates:call:__init__:_execute_child

Bug #1927994 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

update-notifier-common depends on update-manager-core and update-notifier depends on update-manager | update-manager-gnome. However, calling "backend_helper.py show_updates" from update-notifier-common will crash w/o update-manager.

(focal-amd64)root@impulse:/home/bdmurray/tmp# /usr/bin/python3 /usr/lib/update-notifier/backend_helper.py show_updates
Traceback (most recent call last):
  File "/usr/lib/update-notifier/backend_helper.py", line 166, in <module>
    res = f(**f_kwargs)
  File "/usr/lib/update-notifier/backend_helper.py", line 22, in show_updates
    res = subprocess.call(cmd)
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'update-manager'

[Errors Bucket]
The Ubuntu Error Tracker has been receiving reports about a problem regarding update-notifier. This problem was most recently seen with package version 3.192.36, the problem page at https://errors.ubuntu.com/problem/0d32a54a459e849834245732febb0b408adddecc contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

description: updated
tags: added: rls-ii-incoming
Changed in update-notifier (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: New → In Progress
importance: Undecided → Medium
tags: added: rls-ii-notifixing
removed: rls-ii-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-notifier - 3.192.45

---------------
update-notifier (3.192.45) impish; urgency=medium

  * Use the ayatana variant of the indicators since they are better
    maintained and Debian transitioned, we are doing the same
    for Ubuntu now

  [ Brian Murray ]
  * data/backend_helper.py: only call update-manager if it is installed on the
    system. (LP: #1927994)

 -- Sebastien Bacher <email address hidden> Fri, 25 Jun 2021 11:06:31 +0200

Changed in update-notifier (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers