-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
I'm encountering an issue while running the catthehacker/ubuntu:full-22.04 image on a Debian system. After starting the container, I am unable to access external connections. The following error is observed when attempting to update package sources:
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Err:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Additionally, when trying to test with curl, I get the following error:
curl -Iv http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease
* getaddrinfo() thread failed to start
* Could not resolve host: archive.ubuntu.com
* Closing connection 0
curl: (6) getaddrinfo() thread failed to start
However, I can access these links successfully from outside the Docker container on the host system.
When I attempt to manually add the missing key based on the error, I get the following:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.dI6QFDwGgb/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.dI6QFDwGgb/S.dirmngr' failed: End of file
gpg: keyserver receive failed: No dirmngr
The issues seem to be caused by differences in communication between Debian and Ubuntu. Is there a more Debian-compatible Ubuntu image solution?
Metadata
Metadata
Assignees
Labels
No labels