[Bug 1144058] Re: update-manager crashes with UnboundLocalError: local variable 'installed_file' referenced before assignment

Brian Murray brian at ubuntu.com
Wed Apr 5 21:22:47 UTC 2017


*** This bug is a duplicate of bug 1428297 ***
    https://bugs.launchpad.net/bugs/1428297

** This bug is no longer a duplicate of bug 1142400
   update-manager crashed with UnboundLocalError in _get_application_for_package(): local variable 'installed_file' referenced before assignment
** This bug has been marked a duplicate of bug 1428297
   update-manager crashed with OSError in _get_application_for_package(): [Errno 5] Eingabe-/Ausgabefehler

-- 
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/1144058

Title:
  update-manager crashes with UnboundLocalError: local variable
  'installed_file' referenced before assignment

Status in update-manager package in Ubuntu:
  New

Bug description:
  Running update-manager results in the following crash:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/UpdateManager/Core/UpdateList.py", line 234, in _get_application_for_package
      desktop_file)
    File "/usr/lib/python3/dist-packages/gi/types.py", line 137, in constructor
      return info.invoke(cls, *args, **kwargs)
  TypeError: constructor returned NULL

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateProgress.py", line 78, in _on_backend_done
      self.window_main.start_available(not success)
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 186, in start_available
      self.refresh_cache()
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 313, in refresh_cache
      self.update_list.update(self.cache)
    File "/usr/lib/python3/dist-packages/UpdateManager/Core/UpdateList.py", line 416, in update
      self.update_groups = self._make_groups(cache, upgrade_pkgs)
    File "/usr/lib/python3/dist-packages/UpdateManager/Core/UpdateList.py", line 337, in _make_groups
      app = self._get_application_for_package(pkg)
    File "/usr/lib/python3/dist-packages/UpdateManager/Core/UpdateList.py", line 238, in _get_application_for_package
      (installed_file, e))
  UnboundLocalError: local variable 'installed_file' referenced before assignment

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: update-manager 1:0.183
  ProcVersionSignature: Ubuntu 3.8.0-8.17-generic 3.8.0
  Uname: Linux 3.8.0-8-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.8-0ubuntu4
  Architecture: amd64
  Date: Mon Mar  4 11:12:24 2013
  GsettingsChanges:
   b'com.ubuntu.update-manager' b'first-run' b'false'
   b'com.ubuntu.update-manager' b'launch-time' b'1362391615'
   b'com.ubuntu.update-manager' b'show-details' b'true'
   b'com.ubuntu.update-manager' b'window-height' b'1031'
   b'com.ubuntu.update-manager' b'window-width' b'1920'
  InstallationDate: Installed on 2013-02-10 (21 days ago)
  InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130210)
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: update-manager
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list