Just cloned the Rails repo and opened on VS Code. Both VS Code’s built-in container build or command-line result in the same error. Tracked the error to .devcontainer/library-scripts/github-debian.sh
, seems like the script is able to fetch the key (line tagged as #0 1.829
shows some bytes being transferred).
I wonder if it’s something like I need the GPG key added to my host machine or if it expired?
Error:
=> ERROR [ 4/21] RUN apt-get update && bash /tmp/library-scripts/github-debian.sh 2.2s
------
> [ 4/21] RUN apt-get update && bash /tmp/library-scripts/github-debian.sh:
#0 0.280 Hit:1 https://dl.yarnpkg.com/debian stable InRelease
#0 0.739 Hit:2 http://deb.debian.org/debian bullseye InRelease
#0 0.746 Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
#0 0.772 Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
#0 0.879 Get:5 http://deb.debian.org/debian-security bullseye-security/main arm64 Packages [180 kB]
#0 0.922 Fetched 272 kB in 1s (369 kB/s)
#0 0.922 Reading package lists...
#0 1.179 Downloading GitHub CLI...
#0 1.476 GITHUB_CLI_ARCHIVE_GPG_KEY=C99B11DEB97541F0
#0 1.479 GPG_KEY_SERVERS=keyserver hkp://keyserver.ubuntu.com:80
#0 1.479 keyserver hkps://keys.openpgp.org
#0 1.479 keyserver hkp://keyserver.pgp.com
#0 1.484 (*) Downloading GPG key...
#0 1.699 Hit:1 http://deb.debian.org/debian bullseye InRelease
#0 1.705 Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
#0 1.714 Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
#0 1.721 Hit:4 https://dl.yarnpkg.com/debian stable InRelease
#0 1.829 Get:5 https://cli.github.com/packages bullseye InRelease [3921 B]
#0 1.894 Err:5 https://cli.github.com/packages bullseye InRelease
#0 1.894 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
#0 1.898 Reading package lists...
#0 2.158 W: GPG error: https://cli.github.com/packages bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
#0 2.158 E: The repository 'https://cli.github.com/packages bullseye InRelease' is not signed.
------
error: failed to solve: executor failed running [/bin/sh -c apt-get update && bash /tmp/library-scripts/github-debian.sh]: exit code: 100