Snapcraft 7 fails with inline deb822 signing blocks
Metadata
Current evaluation
Snapcraft 7 core20 LXD builds fail on hosts with modern apt deb822 Signed-By blocks due to a legacy apt package check in snapcraft_legacy. Triaged; root cause identified, but snapcraft_legacy and core20 have since been removed from the codebase.
Suggested action: close stale
Reason: The issue was triaged and maintainer mr-cal identified the root cause as a legacy apt check in snapcraft_legacy/internal/build_providers/_lxd/_lxd.py#L90. However, snapcraft_legacy has since been removed (commit ffb164b7a 'chore: remove snapcraft_legacy') and core20 support dropped (commit fa7952b4d 'chore!: drop core20 (#6019)'), so the problematic code path no longer exists and the bug is no longer reproducible in the current codebase.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
35
Quick Win:
26.25
Staleness:
85
Complexity:
25
Confidence:
85
Support Request:
10
|
close stale | Snapcraft 7 core20 LXD builds fail on hosts with modern apt deb822 Signed-By blocks due to a legacy apt package check in snapcraft_legacy. Triaged; root cause identified, but snapcraft_legacy and core20 have since been removed from the codebase. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
15
Complexity:
20
Confidence:
85
Support Request:
5
|
keep open | Snapcraft 7 fails when using LXD with modern apt's inline deb822 Signed-By blocks due to legacy host apt source parsing. Triaged and under maintainer analysis with a proposed fix. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
65
Complexity:
15
Confidence:
90
Support Request:
0
|
keep open | Snapcraft 7 fails with LXD backend when modern apt uses inline deb822 Signed-By blocks. Triaged bug with maintainer-identified root cause in legacy code; awaiting fix. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
15
Complexity:
25
Confidence:
95
Support Request:
0
|
keep open | Snapcraft 7 fails with LXD when using modern apt's inline deb822 Signed-By format. Root cause is legacy package-checking code that can be removed. Triaged and awaiting a fix, similar to issue #4960. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#4960
(confidence 80%)
Maintainer mr-cal noted on 2025-04-28: 'This is very similar to #4960. Same function, but fails on the snap code instead of the apt code.' Both stem from the same legacy LXD provider package-check logic.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft hardcodes the LXD snap path during cleanbuild, causing failures with deb-installed LXD. The report appears abandoned or superseded by updated Snapcraft versions that dynamically detect LXD installations. | |
| #4960 Can't build Core20 snaps on non-snap distros | snapcraft | open | Core20 snap builds fail on non-snap distros (NixOS) due to LXD snap detection. Triaged with a proposed backport fix, but core20 support and snapcraft_legacy have since been removed from the project, making the issue no longer applicable. | |
| #1750642 Snapcraft fails in LXD container on Debian 9 | snapcraft (launchpad) | closed | Closed as stale. The Snapcraft LXD container build failure on Debian 9 was not resolved due to outdated Debian and Snapcraft versions no longer being supported. | |
| #5420 Snapcraft 7 fails to launch a LXD container based on host apt sources entries | snapcraft | closed | Closed as a duplicate of #4408. Snapcraft 7 fails to parse PGP fingerprints in host apt sources when launching LXD containers, triggering an apt_pkg.Error. Resolution is tracked in the referenced duplicate. | |
| #1981979 snapcraft 7.0.8+ stopped working on non debian systems | snapcraft (launchpad) | closed | Closed without resolution or comments. The reported apt_pkg error blocking snapcraft 7.0.8+ builds on non-Debian systems remains unfixed and the issue appears abandoned. | |
| #4285 Snapcraft v7 fails to build core18 snap with local plugins | snapcraft | closed | Snapcraft v7 failed to build core18 snaps with local plugins due to an unredirected snapcraft.sources import. Snapcraft v7.5.3 resolved this by implementing the required legacy import redirection, enabling successful builds. | |
| #2099923 Snapcraft builds are failing: install of snap "snapcraft" failed | snapcraft (launchpad) | open | Snapcraft builds failing due to outdated snapd (2.61) on build infrastructure unable to install core20 base. Issue is 556 days old with no maintainer response. | |
| #1583236 snapcraft APT sources checking too strict | snapcraft (launchpad) | open | snapcraft fails builds when APT exits nonzero for non-critical warnings (e.g., outdated hash functions, unsupported PPAs). Unlabelled, zero comments, no maintainer interaction; references obsolete 2015-era sources. | |
| #1866300 snapcraft fails to build core20 snap | snapcraft (launchpad) | closed | Closed without comments or resolution after 74 days. The core20 build failure involving multipass hangs and LXD tracebacks was abandoned. |