Don't add armhf as a compatible architecture for 25.10 and newer
Metadata
Current evaluation
Fixed by merged PR #255 (commit b4767b8), released in craft-archives 2.2.2: on Ubuntu 25.10+ arm64 hosts no longer auto-add armhf to ubuntu.sources, since arm64 moved to archive.ubuntu.com.
Resolution: closed resolved
Reason: PR #255 ("fix: don't add armhf as a compatible arch for 25.10 and higher") was merged as commit b4767b8, adding a version check in craft_archives/repo/apt_sources_manager.py that returns only ["arm64"] when Ubuntu >= 25.10. The changelog for 2.2.2 documents the fix.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
If a host is 25.10 or newer, then craft-archives shouldn't add armhf as a compatible architecture to arm64.
### Why it needs to get done
Today, craft-archives unconditionally adds [compatible architectures](https://github.com/canonical/craft-archives/blob/ddfadb5c37da74e4e9c82cf560bd83927c7f0d90/craft_archives/repo/apt_sources_manager.py#L44-L47) before adding a package repository.
An arm64 host will add armhf to `ubuntu.sources`. This works great when the arm64 host's `ubuntu.sources` points https://ports.ubuntu.com, which hosts both architectures.
For 25.10 and newer, this no longer works. Arm64 is now on https://archive.ubuntu.com but armhf isn't, so craft-archives breaks when it adds armhf to `ubuntu.sources`.
Source: https://github.com/canonical/snapcraft/issues/6326
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #255 (commit b4767b8), released in craft-archives 2.2.2: on Ubuntu 25.10+ arm64 hosts no longer auto-add armhf to ubuntu.sources, since arm64 moved to archive.ubuntu.com. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in canonical/craft-archives#255 via commit b4767b8: arm64 hosts on Ubuntu 25.10+ no longer auto-add armhf, avoiding failures against archive.ubuntu.com. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after triage. Resolved by implementing a version check to conditionally skip armhf for arm64 hosts on Ubuntu 25.10+, preventing repository configuration failures. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
10
Complexity:
20
Confidence:
90
Support Request:
5
|
keep open | Bug in craft-archives where armhf is unconditionally added as a compatible architecture for arm64 hosts, breaking package repository setup on Ubuntu 25.10+. Currently triaged and awaiting implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
0
Complexity:
10
Confidence:
95
Support Request:
0
|
keep open | craft-archives unconditionally adds armhf as a compatible architecture for arm64 hosts, breaking package repository configuration on Ubuntu 25.10+ where arm64 and armhf use different mirrors. Issue is triaged and awaiting implementation. |
Update history
| Date | Change |
|---|---|
| closed |
Related work
-
Likely Fixed By:
canonical/craft-archives#255
(confidence 99%)
Merged PR containing commit b4767b8 that implements the requested behaviour change.
-
Related To:
canonical/snapcraft#6326
(confidence 90%)
Original upstream report cited in the issue body as the source of the arm64/armhf breakage.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #255 fix: don't add armhf as a compatible arch for 25.10 and higher | craft-archives | merged | Merged PR #255 via commit b4767b8 and released in 2.2.2; Ubuntu 25.10+ arm64 no longer auto-adds armhf compatibility, fixing #230. | |
| #96 sources: only add "compatible" architectures | craft-archives | merged | Merged as craft-archives commit 06b1ca2: fixes dpkg --add-architecture argument order and only adds host-compatible archs (amd64→i386, arm64→armhf). Shipped in 1.1.3, whose changelog was added in #97. | |
| #6326 core26: apt update fails due to armhf being added to the architectures list on arm64 platforms | snapcraft | closed | core26 arm64 builds failed because craft-archives auto-added armhf, 404ing on archive.ubuntu.com. Root cause fixed in craft-archives#255 (commit b4767b8, v2.2.2); snapcraft pinned craft-archives>=2.2.2 via merged PR #6415. | |
| #1498157 armhf requires using a different archive host | snapcraft (launchpad) | closed | Fixed by PR #3044 (commit 3b433009d): build providers now use Ubuntu Ports mirrors instead of archive.ubuntu.com on non-x86 platforms such as armhf. |