whoopsie-upload-all/kernel_oops crashed with AssertionError in get_system_architecture()

Bug #1553416 reported by Mikemecanic
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Fresh Install. That was after running Software updater for the first time. There is nothing abnormal. Testing Tracker ISO Daily. Didn't have any bugs with the installation.

```
Traceback (most recent call last):
  File "/usr/share/apport/kernel_oops", line 32, in <module>
    pr.add_package(package)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 277, in add_package
    self._customized_package_suffix(package))
  File "/usr/lib/python3/dist-packages/apport/report.py", line 246, in _customized_package_suffix
    mod = packaging.get_modified_files(package)
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 347, in get_modified_files
    listfile = '/var/lib/dpkg/info/%s:%s.list' % (package, self.get_system_architecture())
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 505, in get_system_architecture
    assert dpkg.returncode == 0
AssertionError
```

Problem reports
---------------

* kernel_oops on Ubuntu 15.10 to 20.04: https://errors.ubuntu.com/problem/301cb54f19c5e021facd182f16353cf092ac7eca
* whoopsie-upload-all on Ubuntu 20.04: https://errors.ubuntu.com/problem/b5217d0f28e53f91d843dbe0b77514e26f904ee1
* whoopsie-upload-all on Ubuntu 20.04: https://errors.ubuntu.com/problem/2f2ae3309997fec382129465a3bb002c674f6a1c
* whoopsie-upload-all on Ubuntu 22.04: https://errors.ubuntu.com/problem/fb3b33960ce53731e08f599ea379656113e8f98d

ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: apport 2.20-0ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-10.25-generic 4.4.3
Uname: Linux 4.4.0-10-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CrashReports:
 640:1000:116:57629:2016-03-04 18:16:50.273453474 -0500:2016-03-04 18:16:51.273453474 -0500:/var/crash/_usr_bin_blueman-applet.1000.crash
 640:1000:116:1216278:2016-03-04 18:26:56.085548162 -0500:2016-03-04 18:26:57.185549119 -0500:/var/crash/_usr_lib_x86_64-linux-gnu_xfce4_panel_wrapper-1.0.1000.crash
 600:109:116:0:2016-03-04 18:26:58.769562795 -0500:2016-03-04 18:26:58.769562795 -0500:/var/crash/_usr_lib_x86_64-linux-gnu_xfce4_panel_wrapper-1.0.1000.uploaded
 664:1000:116:0:2016-03-04 18:26:57.173549015 -0500:2016-03-04 18:26:57.173549015 -0500:/var/crash/_usr_lib_x86_64-linux-gnu_xfce4_panel_wrapper-1.0.1000.upload
 640:115:116:14869:2016-03-04 18:32:15.171937465 -0500:2016-03-04 18:32:16.171937465 -0500:/var/crash/_usr_share_apport_kernel_oops.115.crash
Date: Fri Mar 4 18:32:16 2016
ExecutablePath: /usr/share/apport/kernel_oops
InstallationDate: Installed on 2016-03-04 (0 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160304)
InterpreterPath: /usr/bin/python3.5
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/share/apport/kernel_oops 191362
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
PythonArgs: ['/usr/share/apport/kernel_oops', '191362']
SourcePackage: apport
Title: kernel_oops crashed with AssertionError in get_system_architecture()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Mikemecanic (ppas) wrote :
tags: removed: need-duplicate-check
Changed in apport (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Changed in apport (Ubuntu):
status: New → Triaged
Benjamin Drung (bdrung)
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :

whoopsie-upload-call can run into the same crash (bug #1999036):

```
Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 178, in <module>
    stamps = collect_info()
  File "/usr/share/apport/whoopsie-upload-all", line 128, in collect_info
    res = process_report(r)
  File "/usr/share/apport/whoopsie-upload-all", line 69, in process_report
    r.add_package_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 380, in add_package_info
    dep, v, self._customized_package_suffix(dep))
  File "/usr/lib/python3/dist-packages/apport/report.py", line 294, in _customized_package_suffix
    mod = packaging.get_modified_files(package)
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 387, in get_modified_files
    sumfile = '/var/lib/dpkg/info/%s:%s.md5sums' % (package, self.get_system_architecture())
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 539, in get_system_architecture
    assert dpkg.returncode == 0
AssertionError
```

Benjamin Drung (bdrung)
summary: - kernel_oops crashed with AssertionError in get_system_architecture()
+ whoopsie-upload-all/kernel_oops crashed with AssertionError in
+ get_system_architecture()
description: updated
Benjamin Drung (bdrung)
description: updated
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.