We are trying to build a new docker image from an using docker-compose build
from a GCP compute engine. First, here is info on our specific machine:
nickcanova@cbb-airflow:/home/ubuntu/cbb-airflow$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
nickcanova@cbb-airflow:/home/ubuntu/cbb-airflow$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
nickcanova@cbb-airflow:/home/ubuntu/cbb-airflow$ uname -a
Linux cbb-airflow 4.19.0-26-cloud-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09) x86_64 GNU/Linux
We are receiving errors related to GPG public keys not being available
> [cbb-airflow-airflow-webserver 2/9] RUN apt-get update && apt-get install -y wget:
#0 0.571 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
#0 0.606 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
#0 0.606 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#0 0.608 Get:4 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
#0 0.696 Err:1 http://deb.debian.org/debian bookworm InRelease
#0 0.696 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY F8D2585B8783D481
#0 0.704 Get:5 https://packages.microsoft.com/debian/12/prod bookworm InRelease [3618 B]
#0 0.787 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 0.788 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
#0 0.860 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 0.860 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8
#0 0.947 Err:4 https://download.docker.com/linux/debian bookworm InRelease
#0 0.947 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
#0 1.038 Err:5 https://packages.microsoft.com/debian/12/prod bookworm InRelease
#0 1.038 At least one invalid signature was encountered.
#0 1.215 Get:6 https://archive.mariadb.org/mariadb-10.11/repo/debian bookworm InRelease [4625 B]
#0 1.310 Err:6 https://archive.mariadb.org/mariadb-10.11/repo/debian bookworm InRelease
#0 1.310 At least one invalid signature was encountered.
#0 1.524 Get:7 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease [123 kB]
#0 1.912 Err:7 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease
#0 1.912 At least one invalid signature was encountered.
#0 1.920 Reading package lists...
#0 1.937 W: GPG error: http://deb.debian.org/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY F8D2585B8783D481
I have attempted to grab the new keys using the following, for all keys indicated as missing, however this is not resolving the issue. After running these commands to fetch the keys, I try docker-compose build and receive the same errors.
nickcanova@cbb-airflow:/home/ubuntu/cbb-airflow$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
Executing: /tmp/apt-key-gpghome.sVsBiqnKJs/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
gpg: key 73A4F27B8DD47936: "Debian Archive Automatic Signing Key (11/bullseye) <[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
Because it says unchanged
, and not changed
, perhaps the keys aren’t being pulled as needed? Any other ways to troubleshoot this issue?