[Bug 1968613] Re: update-manager crashed with AttributeError in _records(): 'NoneType' object has no attribute 'lookup'
Benjamin Drung
1968613 at bugs.launchpad.net
Thu Sep 12 09:22:09 UTC 2024
There are many, many crashes reported on
https://errors.ubuntu.com/problem/576bd087f8ce9aed27d88679d3a212f6323d12f7
with the same stack trace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 434, in restart_icon_renderer_data_func
requires_restart = self.pkg_requires_restart(data.item.pkg)
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 413, 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'
```
** Description changed:
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
+ 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
** Information type changed from Private to Public
** Tags added: noble oracular rls-nn-incoming
--
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:
New
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