I installed apport version 2.20.9-0ubuntu7.2 and did not receive a Traceback when using apport-collect to update an ubuntu-release-upgrader bug report. I did however receive the following error message since apport doesn't seem to support using apport-collect with a source package name, but that is a separate issue.
After the problem report has been sent, please fill out the form in the automatically opened web browser. What would you like to do? Your options are: S: Send report (1.7 KB) V: View report K: Keep report file for sending later or copying to somewhere else I: Cancel and ignore future crashes of this program version C: Cancel Please choose (S/V/K/I/C): v *** Collecting problem information The collected information can be sent to the developers to improve the application. This might take a few minutes. dpkg-query: no packages found matching ubuntu-release-upgrader . *** Error: Invalid problem report Could not determine the package or source package name. Press any key to continue... ** Tags removed: verification-needed verification-needed-bionic ** Tags added: verification-done verification-done-bionic -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1766794 Title: apport-collect doesn't create a ProblemType in the report Status in Apport: Fix Released Status in apport package in Ubuntu: Fix Released Status in apport source package in Bionic: Fix Committed Bug description: Running 'sudo apport-collect BUGID' on 18.04 and then selecting 'V: View report' results in Tracebacks. [Test Case] 1) ssh to a system running bionic 2) run apport-collect 1766787 3) say yes that you want to update a bug report that isn't yours 4) Choose to view the report 5) Observe the following Traceback ERROR: hook /usr/share/apport/general-hooks/generic.py crashed: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook symb['add_info'](report, ui) File "/usr/share/apport/general-hooks/generic.py", line 90, in add_info if report['ProblemType'] == 'Crash': File "/usr/lib/python3.6/collections/__init__.py", line 991, in __getitem__ raise KeyError(key) KeyError: 'ProblemType' With the version of the package from -proposed you will not see the Traceback. [Regression Potential] The change is just to stop removing the ProblemType from the created report so there really isn't a chance of a regression. To manage notifications about this bug go to: https://bugs.launchpad.net/apport/+bug/1766794/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp