Skip to content

core26: apt update fails due to armhf being added to the architectures list on arm64 platforms #6326

Description

@IsaacJT

Check existing issues

  • I've verified that this bug isn't described by any existing issues.

Bug description

Building a core26 snap on an arm64 host running 26.04 can result in the behaviour shown in the logs when snapcraft tries to update the apt sources list.

This is due to armhf automatically being added as an architecture as per https://github.com/canonical/craft-archives/blob/1b6bf121b3756ef420e0e9991c1a69da278d8490/craft_archives/repo/apt_sources_manager.py#L46 and the recent move of the arm64 archives to archive.ubuntu.com (armhf packages were not added). Previously, both arm64 and armhf packages were available in one place on ports.ubuntu.com, but recent arm64 LXD images use the new URL.

Steps to reproduce

Build a core26 arm64 snap in a clean LXD environment with a recent image.

Environment

Running on an arm64 self-hosted GitHub runner using the snapcore/action-build action, which uses LXD to run the build.

snapcraft.yaml

Log output

:: 2026-07-07 09:22:09.425 Reading sources from '/etc/apt/sources.list.d/ubuntu.sources'.
:: 2026-07-07 09:22:09.425 Updating field 'Architectures' to 'arm64 armhf'
:: 2026-07-07 09:22:09.425 Updating source 'http://archive.ubuntu.com/ubuntu/'.
:: 2026-07-07 09:22:09.425 Updating source 'http://security.ubuntu.com/ubuntu/'.
:: 2026-07-07 09:22:09.425 Writing updated sources to '/etc/apt/sources.list.d/ubuntu.sources'.
:: 2026-07-07 09:22:09.425 Writing updated sources to '/etc/apt/sources.list.d/ubuntu.sources'.
:: 2026-07-07 09:22:09.425 Adding repository architecture: arm64
:: 2026-07-07 09:22:09.431 Refreshing repositories
...
:: 2026-07-07 09:22:20.233 :: Reading package lists...
:: 2026-07-07 09:22:20.251 :: E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/resolute-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.95 80]
:: 2026-07-07 09:22:20.251 :: E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/resolute/main/binary-armhf/Packages  404  Not Found [IP: 185.125.190.94 80]
:: 2026-07-07 09:22:20.251 :: E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/resolute-updates/main/binary-armhf/Packages  404  Not Found [IP: 185.125.190.94 80]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions