Aptdaemon crashes when there are any non-PEP-440 packages on the system due to setuptools 66.x.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptdaemon (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned | ||
setuptools (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Benjamin Drung | ||
update-manager (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
"Software Updater" stopped working, it shows message "You stopped the check for updates".
update-
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.
org.debian.
org.debian.
org.debian.
org.debian.
org.debian.
org.debian.
There is an upstream ticket against setuptools: https:/
[ 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-
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-
ProcVersionSign
Uname: Linux 5.19.0-29-generic x86_64
ApportVersion: 2.24.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Feb 24 00:16:28 2023
PackageArchitec
SourcePackage: aptdaemon
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in aptdaemon (Ubuntu): | |
importance: | Undecided → High |
tags: | added: rls-nn-incoming |
Changed in update-manager (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
Changed in setuptools (Ubuntu): | |
importance: | Undecided → High |
tags: |
added: rls-ll-incoming removed: rls-nn-incoming |
tags: |
added: foundations-todo removed: rls-ll-incoming |
Changed in setuptools (Ubuntu Lunar): | |
assignee: | nobody → Benjamin Drung (bdrung) |
description: | updated |
I opened bug #2008898 which may be a duplicate.