[Bug 2008430] [NEW] Aptdaemon crashes when there are any non-PEP-440 packages on the system due to setuptools 66.x.x
Launchpad Bug Tracker
2008430 at bugs.launchpad.net
Thu Jun 8 15:24:22 UTC 2023
You have been subscribed to a public bug by Benjamin Drung (bdrung):
"Software Updater" stopped working, it shows message "You stopped the
check for updates".
update-manager.desktop[22442]: dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from
message bus without replying
Analysis shows that this is the result of aptdaemon crash when it tries
to load plugins, and pkg_resources module refuses to parse non PEP-440
compliant Python package versions. There are many such python packages,
one of them "devscripts", as shown in this log, but if I remove
devscripts, it crashes on other packages.
org.debian.apt[22501]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2679, in parsed_version
org.debian.apt[22501]: self._parsed_version = parse_version(self.version)
org.debian.apt[22501]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.debian.apt[22501]: File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py", line 266, in __init__
org.debian.apt[22501]: raise InvalidVersion(f"Invalid version: '{version}'")
org.debian.apt[22501]: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '2.22.2ubuntu5'
org.debian.apt[22501]: (package: devscripts)
There is an upstream ticket against setuptools:
https://github.com/pypa/setuptools/issues/3772
It looks like either setuptools has to be fixed or downgraded, or
aptdaemon modified to not use pkg_resources module.
There is a main ticket for fixing those non-PEP-440 packages: bug
#1991606
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: aptdaemon 1.1.1+bzr982-0ubuntu42
ProcVersionSignature: Ubuntu 5.19.0-29.30-generic 5.19.17
Uname: Linux 5.19.0-29-generic x86_64
ApportVersion: 2.24.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Feb 24 00:16:28 2023
PackageArchitecture: all
SourcePackage: aptdaemon
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: aptdaemon (Ubuntu)
Importance: High
Status: Confirmed
** Affects: setuptools (Ubuntu)
Importance: High
Status: New
** Affects: update-manager (Ubuntu)
Importance: High
Status: New
** Affects: aptdaemon (Ubuntu Lunar)
Importance: Undecided
Status: New
** Affects: setuptools (Ubuntu Lunar)
Importance: Undecided
Status: New
** Affects: update-manager (Ubuntu Lunar)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug foundations-todo lunar wayland-session
--
Aptdaemon crashes when there are any non-PEP-440 packages on the system due to setuptools 66.x.x
https://bugs.launchpad.net/bugs/2008430
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to the bug report.
More information about the foundations-bugs
mailing list