Skip to content

Fix armhf cross-build when the runner mirror lags behind ports - #125

Merged
chrisuthe merged 2 commits into
mainfrom
chrisuthe/task/take-phased-updates-in-the-armhf-cross-build-so
Nov 19, 2026
Merged

chrisuthe merged 2 commits into
mainfrom
chrisuthe/task/take-phased-updates-in-the-armhf-cross-build-so

Conversation

@chrisuthe

@chrisuthe chrisuthe commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

The linux-armv7 job fails intermittently while installing the armhf dependencies:

libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Cause

libsystemd0 and libudev1 are Multi-Arch: same, so the armhf and amd64 copies must be the same version. Two things keep them apart:

  • Mirror lag. armhf comes from ports.ubuntu.com, which already serves systemd 255.4-1ubuntu8.19. amd64 comes from the runner's azure.archive.ubuntu.com mirror, which still serves 8.18. With no amd64 8.19 to install, apt cannot resolve.
  • Phasing. 8.19 is a phased update at 10%, so even where amd64 8.19 is available, apt holds it back on most machines.

How far the mirror lags varies, so the failure comes and goes. The earlier libc6-dev:armhf : Depends: linux-libc-dev:armhf failure on main looks like the same pattern.

Fix

  • On an amd64 host, add an amd64-only source for archive.ubuntu.com (-updates, -security) alongside the runner mirror. Canonical publishes it together with ports, so amd64 always offers the version armhf needs.
  • Pass -o APT::Get::Always-Include-Phased-Updates=true to apt-get install, so apt takes that version even while it is phased.

The first commit (phasing flag only) still failed on this PR. The archive source fixes the mirror lag that the flag can't.

Compatibility

Nothing changes for CLI users. This touches CI only: no flags, config keys, control-socket protocol, state-store format, exit codes or runtime behaviour. Neither Usage Breaking nor Requires-Upstream applies.

@chrisuthe
chrisuthe marked this pull request as ready for review November 19, 2026 20:03
@chrisuthe chrisuthe changed the title Take phased updates in the armhf cross-build so Multi-Arch versions match Fix armhf cross-build when the runner mirror lags behind ports Nov 19, 2026
@chrisuthe
chrisuthe merged commit 51111d5 into main Nov 19, 2026
20 checks passed
@chrisuthe
chrisuthe deleted the chrisuthe/task/take-phased-updates-in-the-armhf-cross-build-so branch November 19, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant