You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
linux-armv7: armhf dependency install fails when libsystemd0 versions skew between the runner and ports.ubuntu.com #126
The linux-armv7 leg in build.yml fails now and then in Install the cross toolchain and armhf dependencies, before anything is built:
The following packages have unmet dependencies:
libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
libpulse0:armhf : Depends: libsystemd0:armhf but it is not going to be installed
libspa-0.2-modules:armhf : Depends: libsystemd0:armhf but it is not going to be installed
Depends: libudev1:armhf (>= 183) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Seen on PR #124: run 44606516987 (pull_request) failed this way, while run 44606528401 (push) of the same commit got past the step minutes later, and main passed at about the same time.
Cause
libsystemd0 and libudev1 are Multi-Arch: same, so the armhf copy must be the exact version of the installed amd64 one. The amd64 side comes from the runner image and the Azure archive mirror. The armhf side comes from ports.ubuntu.com. When a systemd update has reached one but not the other, apt cannot satisfy both and gives up. The skew clears on its own once the mirrors converge, which is why a rerun usually passes.
Proposed fix
In that step:
Print the skew when it happens. Show the installed amd64 versions next to the armhf candidates (dpkg-query -W libsystemd0 libudev1, apt-cache policy libsystemd0:armhf libudev1:armhf), so a failure names its cause instead of "held broken packages".
Align both architectures before the armhf install. Install libsystemd0, libudev1 and their :armhf copies together at one version both sources carry, by upgrading the amd64 side to the ports version or pinning the armhf side to the installed one, whichever exists.
Retry with backoff (apt-get update plus install, a few attempts minutes apart) for skew that alignment cannot bridge yet. Fail with a ::error:: naming the mismatched versions.
Acceptance criteria
A version skew between the runner's amd64 systemd libraries and ports' armhf ones no longer fails the leg when either source carries a common version.
When it still fails, the error names the package and the two versions.
The step's existing guarantees hold: no host-arch -dev package installed, armhf sources still pinned to the runner's release.
Activity