[Bug 2078695] Re: /usr/share/apport/package_hook:ValueError:/usr/share/apport/package_hook at 95:main:get_source
Benjamin Drung
2078695 at bugs.launchpad.net
Mon Sep 2 15:52:14 UTC 2024
This crash can happen on upgrades in case the package in question has
been removed on the newer release.
Example call for Ubuntu 24.04 upgrade:
/usr/share/apport/package_hook -p mime-support --tags dist-upgrade [...]
mime-support has been removed in Ubuntu 24.04.
** Changed in: apport (Ubuntu)
Status: New => Triaged
** Changed in: apport (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2078695
Title:
/usr/share/apport/package_hook:ValueError:/usr/share/apport/package_hook at 95:main:get_source
Status in apport package in Ubuntu:
Triaged
Bug description:
```
Traceback (most recent call last):
File "/usr/share/apport/package_hook", line 95, in <module>
main()
File "/usr/share/apport/package_hook", line 71, in main
report["SourcePackage"] = apport.packaging.get_source(options.package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 308, in get_source
raise ValueError(f"package {package} does not exist")
ValueError: package mime-support does not exist
```
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.30.0-0ubuntu1, the problem page at https://errors.ubuntu.com/problem/609bbfa0872445d4ba4e4e6947877850c38f41dc contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2078695/+subscriptions
More information about the foundations-bugs
mailing list