Snapcraft unable to compile ARM64 kernel
Metadata
Current evaluation
Cross-compiling an ARM64 kernel with snapcraft 7.5.8/8.5.1 fails when the kernel plugin runs 'apt-get download snapd:arm64' for snap bootstrap, because the Focal build environment has no snapd arm64 candidate. No maintainer response; reporter reproduced the apt error on Ubuntu 20/22 in Jan 2025.
Suggested action: needs triage
Reason: No labels, no assignee, and no maintainer comments — only the reporter's own follow-up (2025-01-29) reproducing 'E: Can't select candidate version from package snapd:<arch>' via apt-get download on Ubuntu 20/22. The failure is in the kernel plugin's snap-bootstrap step (apt-get download snapd:arm64), which is a real bug in the plugin's package sourcing, but it has never been triaged. The current main branch's kernel/initrd plugins were substantially reworked (e.g. #6254, #6306), so a maintainer needs to determine whether the snapd-deb download path still exists or was replaced before deciding to close or fix.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
18.0
Staleness:
78
Complexity:
55
Confidence:
55
Support Request:
25
|
needs triage | Cross-compiling an ARM64 kernel with snapcraft 7.5.8/8.5.1 fails when the kernel plugin runs 'apt-get download snapd:arm64' for snap bootstrap, because the Focal build environment has no snapd arm64 candidate. No maintainer response; reporter reproduced the apt error on Ubuntu 20/22 in Jan 2025. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
45
Confidence:
90
Support Request:
85
|
close not a bug | Cross-compiling ARM64 kernels with snapcraft fails when downloading snapd:arm64. Inactive for over 1.5 years with no maintainer response. Author identified the root cause as an external apt repository issue rather than a snapcraft defect. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
90
|
close not a bug | Cross-compiling ARM64 kernel fails due to apt-get download snapd:arm64 error. Author identifies it as an apt repository configuration issue rather than a snapcraft bug. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
30
Confidence:
80
Support Request:
20
|
close stale | Snapcraft ARM64 kernel cross-compilation fails because apt lacks a snapd:arm64 candidate package. The issue remains open and unassigned. The author identified the root cause as an apt repository configuration problem. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#6254
(confidence 50%)
Major kernel/initrd plugin rework that stabilized the plugins; may have changed or removed the snapd-deb bootstrap download path that fails in this issue.
-
Related To:
snapcraft#6306
(confidence 40%)
Fixes use of custom-built ubuntu-core-initramfs debs in the kernel/initrd plugins, adjacent to the initrd bootstrap download logic failing here.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft incorrectly identified arm64 architecture in 64-bit kernel/32-bit userspace chroots, generating mismatched snaps. The report was abandoned due to inactivity. | |
| #1987627 Cannot build snaps in a 32-bit armhf container when running an arm64 kernel | snapcraft (launchpad) | closed | Snapcraft failed to build armhf snaps in armhf containers on arm64 hosts due to unsupported armv8l architecture detection. The issue was resolved in Snapcraft 9.1 by adding native armv8l support, enabling successful builds in this configuration. | |
| #1569280 Snapcraft fails to strip go binaries on arm | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft failed to strip Go binaries on ARM during Launchpad builds, causing failures despite amd64 success. No fix or comments were provided. | |
| #5132 push of locally built snap fails on arm64 device | snapcraft | closed | Resolved via PR #5147 and merged in #5136. A bug in the bundled unsquashfs 4.5 caused push failures on arm64 and x86_64. The fix is included in Snapcraft 8.6, targeting the candidate release on Jan 20, 2025. | |
| #4627 Cannot build snaps in a 32-bit armhf container when running an arm64 kernel | snapcraft | closed | Closed without a public fix. An internal Jira ticket (CRAFT-2567) was created to track the architecture detection error, but no resolution or update was provided, leaving the issue deferred. | |
| #1757094 snapcraft in edge channel (2.39.2+git46.c22d7e2) fails to cross-compile kernel | snapcraft (launchpad) | closed | Closed without comments. The cross-compilation failure was likely resolved in later stable releases or abandoned due to inactivity. The stable channel served as a functional workaround. | |
| #1570414 Snapcraft doesn't check if cross-compiling before trying to install necessary tools | snapcraft (launchpad) | closed | Closed without resolution or comments, likely abandoned or superseded. Snapcraft failed to conditionally install cross-compilation tools, triggering armhf build errors. |