/usr/share/apport/general-hooks/ubuntu.py crashed: KeyError: 'CasperMD5json'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Benjamin Drung | ||
Focal |
Fix Released
|
Medium
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
If the user reports a bug and rejects to enter the root password for collecting information (like the CasperMD5json), the Ubuntu add_info hook will fail with a stack trace. The remaining code for collecting more information is not executed. So the resulting bug reports will be less helpful. The check_for_
[Test Plan]
1. Install Ubuntu (e.g. from ubuntu-
2. Open a terminal
3. Run: ubuntu-bug -f
4. Select "installer" and click on OK
5. Click on "abort" when ask for the password
6. The terminal should not show a stacktrace
[Where problems could occur]
The changed code is the Ubuntu add_info hook. So this hook could fail due to a regression or reveal bugs in the later code path. The later code path could cause more more load on the users machine (but only when the user wants to report the issue). Apport will catch failing add_info hooks and store the failure in the report.
[Orinial report]
ERROR: hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
apport.
File "/usr/lib/
check = json.loads(
File "/usr/lib/
raise KeyError(key)
KeyError: 'CasperMD5json'
kubuntu@kubuntu:~$ Gtk-Message: 21:22:43.923: Failed to load module "colorreload-
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubiquity 22.04.7
ProcVersionSign
Uname: Linux 5.15.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperVersion: 1.467
CurrentDesktop: KDE
Date: Mon Mar 14 21:22:23 2022
InstallCmdLine: BOOT_IMAGE=
LiveMediaBuild: Kubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220314)
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ubiquity (Ubuntu) → apport (Ubuntu) |
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
Changed in apport (Ubuntu Focal): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in apport (Ubuntu Jammy): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
Changed in apport (Ubuntu Focal): | |
status: | Fix Committed → New |
Changed in apport (Ubuntu Jammy): | |
status: | Fix Committed → New |
tags: | added: foundations-todo |
Changed in apport (Ubuntu): | |
assignee: | nobody → Benjamin Drung (bdrung) |
Changed in apport (Ubuntu Focal): | |
assignee: | nobody → cristian swing (sed1991s) |
Changed in apport (Ubuntu Jammy): | |
assignee: | nobody → cristian swing (sed1991s) |
Changed in apport (Ubuntu Focal): | |
assignee: | cristian swing (sed1991s) → nobody |
Changed in apport (Ubuntu Jammy): | |
assignee: | cristian swing (sed1991s) → nobody |
tags: | removed: foundations-todo |
Status changed to 'Confirmed' because the bug affects multiple users.