[Bug 2008430] Re: Aptdaemon crashes when there are any non-PEP-440 packages on the system due to setuptools 66.x.x
Timo Aaltonen
2008430 at bugs.launchpad.net
Fri Nov 17 13:48:46 UTC 2023
Hello Eugene, or anyone else affected,
Accepted setuptools into lunar-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/setuptools/66.1.1-1ubuntu0.1 in a
few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
lunar to verification-done-lunar. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-lunar. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: setuptools (Ubuntu Lunar)
Status: Confirmed => Fix Committed
** Tags added: verification-needed verification-needed-lunar
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2008430
Title:
Aptdaemon crashes when there are any non-PEP-440 packages on the
system due to setuptools 66.x.x
Status in aptdaemon package in Ubuntu:
Fix Released
Status in setuptools package in Ubuntu:
Fix Released
Status in update-manager package in Ubuntu:
Fix Released
Status in aptdaemon source package in Lunar:
Invalid
Status in setuptools source package in Lunar:
Fix Committed
Status in update-manager source package in Lunar:
Invalid
Bug description:
[ Impact ]
"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
[ Test Plan ]
1. Perform all required updates using Software Updater.
2. 'sudo apt install rmlint-gui'
3. Reboot (without reboot the bug did not reproduce)
4. Launch Software Updater: 'update-manager'
5. It will crash, see logs (08:38:56) related to apt daemon.
6. Upgrade the python3-pkg-resources
7. reboot
8. Launch Software Updater
9. Success
[ Where problems could occur ]
Building Python projects could start failing since the code is part of
setuptools.
[ Other Info ]
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/2008430/+subscriptions
More information about the foundations-bugs
mailing list