apport-retrace crashed with subprocess.CalledProcessError in check_call(): Command '['dpkg', '-x', '/srv/vms/apport-retrace/Ubuntu 24.04/apt/var/cache/apt/archives//base-files_13ubuntu9_amd64.deb', '/tmp/apport_sandbox_zj9wto2z']' returned non-zero exit status 2.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Noble |
Fix Released
|
High
|
Unassigned |
Bug Description
[ Impact ]
I'm finding it impossible to retrace any crashes with the version of apport packaged in noble or with upstream commit id adfe3698731b69b
The retracing process ends with the following lines:
Extracting downloaded debs...
tar: ./lib: Cannot create symlink to ‘usr/lib’: File exists
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
sandbox, cache, outdated_msg = apport.
File "/usr/lib/
outdated_msg = packaging.
File "/usr/lib/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
I've tried cleaning the cache, /srv/vms/
[ Test Plan ]
The fix for this bug adds four new system test cases. These system test cases are run in the autopkgtest. Check that those four test cases succeed on amd64 on autopkgtest.
[ Where problems could occur ]
The fix touches apport-retrace. This binary is not installed by default, but is used by us to retrace users reports and by users to retrace their own crashes. This fix might reveal new issues with apport-retrace and it will hopefully help retracing more bugs on Launchpad. This should lead to more bug reports.
[ Other Info ]
ProblemType: Crash
DistroRelease: Ubuntu 24.04
Package: apport-retrace 2.28.1-0ubuntu3
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelMo
ApportLog:
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri May 24 16:03:45 2024
ExecutablePath: /usr/bin/
ExecutableTimes
InstallationDate: Installed on 2018-08-10 (2114 days ago)
InstallationMedia: Ubuntu-Server 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
InterpreterPath: /usr/bin/python3.12
JournalErrors: -- No entries --
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/
ProcCwd: /home/bdmurray/
Python3Details: /usr/bin/
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: apport
Title: apport-retrace crashed with subprocess.
UpgradeStatus: Upgraded to noble on 2024-04-16 (38 days ago)
UserGroups: adm cdrom dip kvm libvirt lpadmin lxd plugdev sambashare sbuild sudo
tags: | removed: need-duplicate-check |
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Changed in apport (Ubuntu): | |
importance: | Medium → High |
tags: |
added: foundations-todo removed: rls-nn-incoming |
Changed in apport: | |
status: | New → Fix Released |
Changed in apport (Ubuntu): | |
status: | New → Fix Committed |
tags: | removed: foundations-todo |
description: | updated |
Changed in apport (Ubuntu Noble): | |
importance: | Undecided → High |
Can you run the dpkg command manually to see the failure message?
``` apport- retrace/ Ubuntu 24.04/apt/ var/cache/ apt/archives/ /base-files_ 13ubuntu9_ amd64.deb' /tmp/apport_ sandbox_ zj9wto2z
dpkg -x '/srv/vms/
```