0

I'm encountering issues with apt-get update within an amd64 Ubuntu Noble Docker container running on an Apple M-series Mac (using the --platform linux/amd64 flag). This process is part of our validation for Artifactory.

The same apt-get update command works perfectly fine when run in a native arm64 Ubuntu Noble container on the same machine.

Problem with amd64 Container:

When running apt-get -m update in the amd64 container, it fails to connect to http://security.ubuntu.com/ubuntu and http://archive.ubuntu.com/ubuntu:

(base) krishnastk-mac@krishnastk-mac-mac ~ % docker run -it --platform linux/amd64 ubuntu:latest /bin/bash
root@3b3de4e68b69:/#
root@3b3de4e68b69:/# apt-get -m update
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Get:2 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
  Connection failed [IP: 185.125.190.82 80]
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
# ... (rest of the amd64 error log) ...
Err:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
  504  Gateway Timeout [IP: 185.125.190.81 80]
# ...

Please let me know how to resolve this issue

0 Answers0