[Bug 1968613] Re: update-manager crashed with AttributeError in _records(): 'NoneType' object has no attribute 'lookup'

Julian Andres Klode 1968613 at bugs.launchpad.net
Thu Sep 12 15:15:27 UTC 2024


Seems like somebody called close() while hanging on to the objects from
the cache.

** Changed in: update-manager (Ubuntu)
       Status: New => Triaged

** Tags removed: rls-nn-incoming
** Tags added: foundations-todo

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

Title:
  update-manager crashed with AttributeError in _records(): 'NoneType'
  object has no attribute 'lookup'

Status in update-manager package in Ubuntu:
  Triaged

Bug description:
  Don't want to update

  ```
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 416, in restart_icon_renderer_data_func
      if group_item.pkg and self.pkg_requires_restart(
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 393, in pkg_requires_restart
      restart_condition = pkg.candidate.record.get('Restart-Required')
    File "/usr/lib/python3/dist-packages/apt/package.py", line 671, in record
      return Record(self._records.record)
    File "/usr/lib/python3/dist-packages/apt/package.py", line 498, in _records
      if not self.package._pcache._records.lookup(self._cand.file_list[0]):
  AttributeError: 'NoneType' object has no attribute 'lookup'
  ```

  ProblemType: Crash
  DistroRelease: Ubuntu 22.04
  Package: update-manager 1:22.04.9
  ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
  Uname: Linux 5.15.0-25-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu80
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashCounter: 1
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Apr 11 21:07:35 2022
  ExecutablePath: /usr/bin/update-manager
  InterpreterPath: /usr/bin/python3.10
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map
  ProcEnviron:
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
  PythonArgs: ['/usr/bin/update-manager', '--no-update', '--no-focus-on-map']
  PythonDetails: N/A
  SourcePackage: update-manager
  Title: update-manager crashed with AttributeError in _records(): 'NoneType' object has no attribute 'lookup'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo vboxusers

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




More information about the foundations-bugs mailing list