This isn't really a release-upgrader bug. It's a long-standing side
effect of how the Ubuntu archive is laid out plus the way apt handles
multiarch.

The archive is split across two hosts by architecture.
archive.ubuntu.com only ever serves the primary arches; everything else
lives on ports.ubuntu.com. Separately, apt will fetch package indices
for every enabled architecture from any source that doesn't pin itself
with an Architectures: field. So the moment you enable a ports-only arch
like armhf, apt tries to pull binary-armhf/Packages from whatever URI is
in your sources. If that URI is archive.ubuntu.com, which has never
carried armhf, you get a 404.

We're only hitting it now because arm64 moved from ports to primary in
Resolute, and that broke a coincidence we'd been relying on, lol. arm64
and armhf used to both live on ports.ubuntu.com, so a single unqualified
ubuntu-ports stanza covered both of them. Adding armhf on an arm64 Pi
worked, but only by accident of them sharing a host.

The same failure has been sitting there for years on amd64. Adding armhf
there has always 404'd against archive:

utkarsh@noble:~# apt update
...
utkarsh@noble:~# dpkg --add-architecture armhf
utkarsh@noble:~# apt update
E: Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/noble/main/binary-armhf/Packages  404  
Not Found [IP: 104.20.28.246 80]
...

Nobody noticed because the foreign arch people actually add on amd64 is
i386, and i386 is a primary arch that archive serves, so it works fine.
armhf on amd64 is rare enough that the handful of people doing it
already know to add an [arch=armhf] ports source themselves. Moving
arm64 onto archive just took that pre-existing rough edge and dropped it
into a very common Pi workflow.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154822

Title:
  Upgrades to resolute with armhf foreign arch fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2154822/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to