autopkgtest-satdep.deb unpack fails on Debian images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Impish |
Fix Released
|
Medium
|
Athos Ribeiro |
Bug Description
[Impact]
dpkg defaults to the zstd compression format for compressing the members in a deb package archive. This compression format is not supported in Debian. Therefore, running autopkgtest from an Ubuntu (21.10) host on a Debian target fails, since autopkgtest uses dpkg-deb to generate the autopkgtest-
[Test Plan]
For any package with dep8 tests, run
$ autopkgtest-
$ autopkgtest ./. -- lxd autopkgtest/
and verify it fails with:
autopkgtest [18:32:17]: build needed for binaries
autopkgtest [18:32:24]: ERROR: "dpkg --unpack /tmp/autopkgtes
dpkg: error processing archive /tmp/autopkgtes
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/tmp/autopkgte
Then, upgrade the package to the version with the proposed fix and re-run the tests
$ autopkgtest ./. -- lxd autopkgtest/
Finally, verify the error no longer occurs.
[Where problems could occur]
We will be enforcing the xz compression format. While this is available in dpkg throughout all supported Ubuntu releases, this could become an issue for targets that do not support such compression format. In this case, the change would need to be reverted or changed to a compression format supported by older versions of dpkg (i.e., gz).
[Other Info]
This have been fixed in jammy on 5.19.
[Original message]
Since impish, dpkg defaults to the zstd compression format for compressing the members in a deb package archive [1,2].
However Debian zstd support efforts are still in progress [3].
Therefore, running autopkgtest from an Ubuntu (>= 21.10) host on a Debian target fails, since autopkgtest uses dpkg-deb to generate the autopkgtest-
For instance, running the following commands for a given package
$ autopkgtest-
$ autopkgtest ./. -- lxd autopkgtest/
results in the following error:
autopkgtest [18:32:17]: build needed for binaries
autopkgtest [18:32:24]: ERROR: "dpkg --unpack /tmp/autopkgtes
dpkg: error processing archive /tmp/autopkgtes
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/tmp/autopkgte
[1] https:/
[2] https:/
[3] https:/
Related branches
- Julian Andres Klode (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 28 lines (+8/-1)2 files modifieddebian/changelog (+7/-0)
lib/adt_testbed.py (+1/-1)
Changed in autopkgtest (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in autopkgtest (Ubuntu Impish): | |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |
importance: | Undecided → Medium |
Changed in autopkgtest (Ubuntu Impish): | |
status: | New → In Progress |
A possible solution here would be to force the dpkg-deb operation to use a different compression format until https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 892664 gets sorted out (patch proposal attached).
This would enable developers running Ubuntu to perform autopkgtest tests against Debian before submitting patches there.
A PPA with the proposed patch is available at https:/ /launchpad. net/~athos- ribeiro/ +archive/ ubuntu/ autopkgtest- use-xz/ +packages