Failing to pull ARM64 apt packages in ubuntu docker containers

Ubuntu Version:

ubuntu:24.04

Desktop Environment (if applicable):
N/A

Problem Description:

Hi all, I have a CI/CD pipeline that builds an arm64 cross-compiling container from ubuntu, and yesterday the build started failing due to being unable to download / resolve some arm64 ubuntu ports.
Normally I have apt routing through an artifactory proxy, but removing the proxy and resorting to the default yields the same result.In fact, I can’t seem to even complete an apt-get update after adding the arm64 dpkg.
Is there an outage I’m not aware of the ports apt archives?

Relevant System Information:

Screenshots or Error Messages:

docker run --rm -it ubuntu
dpkg --add-architecture arm64
apt-get update
Err:13 http://archive.ubuntu.com/ubuntu noble/restricted arm64 Packages
  404  Not Found [IP: 185.125.190.83 80]
Ign:14 http://archive.ubuntu.com/ubuntu noble/universe arm64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu noble/multiverse arm64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
Err:21 http://archive.ubuntu.com/ubuntu noble-updates/universe arm64 Packages
  404  Not Found [IP: 185.125.190.83 80]
Ign:24 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
Ign:25 http://archive.ubuntu.com/ubuntu noble-updates/multiverse arm64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu noble-updates/restricted arm64 Packages
Err:30 http://archive.ubuntu.com/ubuntu noble-backports/main arm64 Packages
  404  Not Found [IP: 185.125.190.83 80]
Ign:32 http://archive.ubuntu.com/ubuntu noble-backports/universe arm64 Packages
Fetched 29.3 MB in 2s (14.9 MB/s)
Reading package lists... Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/restricted/binary-arm64/Packages  404  Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble/restricted/binary-arm64/Packages  404  Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-updates/universe/binary-arm64/Packages  404  Not Found [IP: 185.125.190.83 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-backports/main/binary-arm64/Packages  404  Not Found [IP: 185.125.190.83 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@0a08d2013ac3:/#

There are no arm packages on archive.ubuntu.com (they have never been there)…

You will need to switch to ports.ubuntu.com to get arm(hf|64), ppc64 and s390x packages…

2 Likes

Ah yes sorry I should have mentioned I have ubuntu-ports in my proxy and added in the docker build.

I’ve added the ports.ubuntu.com in my minimal reproducing container, and I’m still getting a failure to resolve:

ubuntu.sources:

Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Ign:10 http://ports.ubuntu.com/ubuntu-ports noble/universe amd64 Packages
Ign:11 http://ports.ubuntu.com/ubuntu-ports noble/main amd64 Packages
Ign:12 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe amd64 Packages
Ign:13 http://ports.ubuntu.com/ubuntu-ports noble-updates/multiverse amd64 Packages
Ign:14 http://ports.ubuntu.com/ubuntu-ports noble-updates/main amd64 Packages
Ign:15 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted amd64 Packages
Ign:16 http://ports.ubuntu.com/ubuntu-ports noble-backports/universe amd64 Packages
Ign:17 http://ports.ubuntu.com/ubuntu-ports noble-backports/main amd64 Packages
Err:8 http://ports.ubuntu.com/ubuntu-ports noble/restricted amd64 Packages
  404  Not Found [IP: 185.125.190.39 80]
Ign:9 http://ports.ubuntu.com/ubuntu-ports noble/multiverse amd64 Packages
Ign:10 http://ports.ubuntu.com/ubuntu-ports noble/universe amd64 Packages
Ign:11 http://ports.ubuntu.com/ubuntu-ports noble/main amd64 Packages
Err:12 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe amd64 Packages
  404  Not Found [IP: 185.125.190.39 80]
Ign:13 http://ports.ubuntu.com/ubuntu-ports noble-updates/multiverse amd64 Packages
Ign:14 http://ports.ubuntu.com/ubuntu-ports noble-updates/main amd64 Packages
Ign:15 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted amd64 Packages
Err:16 http://ports.ubuntu.com/ubuntu-ports noble-backports/universe amd64 Packages
  404  Not Found [IP: 185.125.190.39 80]
Ign:17 http://ports.ubuntu.com/ubuntu-ports noble-backports/main amd64 Packages
Fetched 508 kB in 3s (201 kB/s)
Reading package lists... Done
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble/restricted/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble-updates/universe/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble-backports/universe/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@be93bb473fd7:

Ah! Wait I see I need to explicitly include the arm64 architecture in the ports mirror. I’m going to try that …

Yes OK this is working. My issue was that I wasn’t adding the ports as a separate repo AND mapping the -security component to it as well. Thanks for the help! I’ve been banging my head against a wall all morning.

2 Likes

Glad you sorted it out.

Please mark as solved so others can find it too in future.

Thanks.

For future reference, I was able to resolve with this sources.list

Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports noble-security
Components: main universe restricted multiverse
Architectures: amd64 i386
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: noble noble-updates noble-backports noble-security
Components: main universe restricted multiverse
Architectures: arm64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.