dist upgrade process passes a number along with package to apport
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Critical
|
Brian Murray | ||
Focal |
Fix Released
|
Critical
|
Brian Murray |
Bug Description
[Impact]
The distribution upgrade process is passing to apport packages with numbers prepended to them, this then causes apport to crash and bugs about package installation failures not to be reported.
[Test Case]
1) Install the package pure-ftpd on an 18.04 LTS system
2) Run 'do-release-upgrade -d' to upgrade to 20.04 LTS
With the version of the dist-upgrader in the release pocket you'll receive the Traceback in comment #2.
To test the dist-upgrader from -proposed you'll actually have to download and use the dist-upgrader tarball from http://
This is actually also recreatable when upgrading from 19.10 to 20.04 and that would be easier as you can use 'do-release-
[Regression Potential]
The code change is a just a simple check to see if the package name starts with a number which then removes the number. So the only chance of regression is the additional python code being bad which it isn't.
Original Description
-------
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.20.11-0ubuntu40, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
tags: | added: id-5eebdf9f5b43fc339de86acb |
Changed in apport (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Brian Murray (brian-murray) |
summary: |
- /usr/share/apport/package_hook:ValueError:__getitem__:_apt_pkg:__getitem__:/usr/share/apport/package_hook@48:get_source:_apt_pkg + dist upgrade process passes a number along with package to apport |
Changed in apport (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Focal): | |
milestone: | none → ubuntu-20.04.1 |
description: | updated |
affects: | apport (Ubuntu) → ubuntu-release-upgrader (Ubuntu) |
description: | updated |
tags: | removed: rls-gg-incoming |
description: | updated |
It looks to me like the hook which is supposed to report package installation failures is now not working likely because '-p' is expecting or being passed the wrong value. Here are some examples:
/usr/bin/python3 /usr/share/ apport/ package_ hook -p 016-google- chrome- stable --tags dist-upgrade ... apport/ package_ hook -p 364-openjdk- 11-jdk- headless --tags dist-upgrade ... apport/ package_ hook -p 687-pop-icon-theme --tags dist-upgrade ...
/usr/bin/python3 /usr/share/
/usr/bin/python3 /usr/share/