/usr/share/apport/general-hooks/ubuntu.py crashed: KeyError: 'CasperMD5json'

Bug #1923541 reported by Thomas Bechtold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Brian Murray
Hirsute
Fix Released
Undecided
Brian Murray

Bug Description

Currently running 21.04, apport version is 2.20.11-0ubuntu62 .

When I try to fill a bug, I see:

$ ubuntu-bug network-manager
ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 84, in add_info
    apport.hookutils.attach_casper_md5check(report,
  File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 1002, in attach_casper_md5check
    del report['CasperMD5json']
  File "/usr/lib/python3.9/collections/__init__.py", line 1064, in __delitem__
    del self.data[key]
KeyError: 'CasperMD5json'

It's not crashing the bug reporting itself, but it looks wrong to have a stacktrace on the command line.

Changed in apport (Ubuntu Hirsute):
status: New → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.11-0ubuntu65

---------------
apport (2.20.11-0ubuntu65) hirsute; urgency=medium

  * test/test_backend_apt_dpkg.py: libc6 recommends packages, some of which
    are not installed on buildds now, so switch to testing libc-bin which only
    has dependencies and is what the test is supposed to test.

 -- Brian Murray <email address hidden> Wed, 14 Apr 2021 13:52:22 -0700

Changed in apport (Ubuntu Hirsute):
status: In Progress → Fix Released
Revision history for this message
graingert (tagrain) wrote :

 KeyError: 'CasperMD5json' is still happening on Jammy

Revision history for this message
Benjamin Drung (bdrung) wrote :

Probably this KeyError was never fixed (the changelog entry for version 2.20.11-0ubuntu65 talks about something else). So I mark this bug as duplicate of bug #1964828.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.