sources: use arfile to extract debs
Metadata
Current evaluation
Merged a fix replacing DebFile with ArFile to extract .deb packages, resolving apt_inst import failures on non-Debian hosts. Approved and merged after passing CI checks.
Suggested action: —
No scores available.
Issue body
Using DebFile imports apt_inst which when run from a snap isn't properly
setup on the hosts which are not debian based.
LP: #1731478
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix replacing DebFile with ArFile to extract .deb packages, resolving apt_inst import failures on non-Debian hosts. Approved and merged after passing CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Replaced DebFile with arfile to extract Debian packages, resolving apt_inst import failures in snaps on non-Debian hosts. Tested on Solus and Fedora. The change transparently replaces the previous method without extracting control information. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Replaced DebFile with ArFile for DEB extraction to resolve snap execution failures on non-Debian hosts. This bypasses apt_inst dependencies, fixes LP: #1731478, and was validated on Solus and Fedora. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1878 repo: use debian.arfile instead of dpkg-deb | snapcraft | merged | Merged a fix replacing dpkg-deb with debian.arfile in the repo source handler to bypass a tar and sshfs bug. Reviewers approved the change and suggested extracting shared extraction logic in a follow-up. | |
| #269 sources: support "deb" sources | craft-parts | merged | Merged. Adds deb source support by unpacking packages via dpkg-deb and refactors extract_deb() for reuse. Resolves CRAFT-117, approved by one reviewer, passes CI, and changes +289/-10 lines across seven files. |