AttributeError in is_distro_package: 'NoneType' object has no attribute 'origins'

Bug #1997973 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Medium
Unassigned
apport (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 249, in <module>
    main()
  File "/usr/share/apport/whoopsie-upload-all", line 231, in main
    stamps = collect_info()
  File "/usr/share/apport/whoopsie-upload-all", line 162, in collect_info
    res = process_report(r)
  File "/usr/share/apport/whoopsie-upload-all", line 90, in process_report
    r.add_package_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 371, in add_package_info
    version = self.add_package(package)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 339, in add_package
    self._customized_package_suffix(package),
  File "/usr/lib/python3/dist-packages/apport/report.py", line 310, in _customized_package_suffix
    if not packaging.is_distro_package(package):
  File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 241, in is_distro_package
    if {o.origin for o in pkg.candidate.origins} == {
AttributeError: 'NoneType' object has no attribute 'origins'

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.23.1-0ubuntu3, the problem page at https://errors.ubuntu.com/problem/3841c459c22228d1ef7cfaeceb767034ee7ca13e 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/.

Tags: kinetic
Benjamin Drung (bdrung)
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
milestone: none → 2.24.0
Changed in apport (Ubuntu):
importance: Undecided → Medium
Changed in apport:
importance: Undecided → Medium
status: New → In Progress
summary: - /usr/share/apport/whoopsie-upload-
- all:AttributeError:/usr/share/apport/whoopsie-upload-
- all@249:main:collect_info:process_report:add_package_info:add_package:_customized_package_suffix:is_distro_package
+ AttributeError in is_distro_package: 'NoneType' object has no attribute
+ 'origins'
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: In Progress → Fix Committed
Benjamin Drung (bdrung)
Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.24.0-0ubuntu1

---------------
apport (2.24.0-0ubuntu1) lunar; urgency=medium

  * New upstream bug-fix release.
    - Catch malformed problem reports (LP: #1996040)
    - Catch ValueError: not enough values to unpack (LP: #1995100)
    - Catch FileNotFoundError for missing desktop files (LP: #1997753)
    - Catch binascii.Error: Incorrect padding (LP: #1997912)
    - Catch AttributeError: NoneType object has no attribute origins
      (LP: #1997973)
  * Drop cherry-picked upstream patches
  * oem-getlogs: Use colon instead of a dot for chown command
  * Remove redundant section from apport-noui
  * Clarify that apport-noui is empty
  * Run black, isort, pydocstyle, pylint during package build

 -- Benjamin Drung <email address hidden> Thu, 08 Dec 2022 01:37:20 +0100

Changed in apport (Ubuntu):
status: New → Fix Released
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.