Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPG Errors when running apt-get update in docker image #7101

Closed
louishawkins opened this issue Aug 29, 2022 · 1 comment · Fixed by #7109
Closed

GPG Errors when running apt-get update in docker image #7101

louishawkins opened this issue Aug 29, 2022 · 1 comment · Fixed by #7109
Labels

Comments

@louishawkins
Copy link

  • Electron-Builder Version: latest
  • Node Version: 16
  • Electron Version: 6
  • Electron Type (current, beta, nightly): current

N/A

  • Target: N/A

Docker image is failing to execute apt-get update -y

Latest working image was

#4 [1/8] FROM docker.io/electronuserland/builder@sha256:9b5ea403486757ffea3e4702330117ac6d6087c6e18dbe3bb324a9658401d47e

Broke the same day (last Thursday August 25 2022)

#4 [1/8] FROM docker.io/electronuserland/builder@sha256:403a739b40969a78d0c089274def6a61343f14e76b998a518e79f0c09ededab4
#5 [2/8] RUN apt-get update -y
#5 sha256:456914bd74a7e4031fe622bbbaddb7644feab549f72c8ff26f275be35ca60819
#5 0.455 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#5 0.596 Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#5 0.736 Err:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
#5 0.736   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 1.130 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
#5 1.239 Err:2 http://archive.ubuntu.com/ubuntu jammy InRelease
#5 1.239   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 1.256 Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
#5 1.421 Err:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#5 1.421   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 1.605 Err:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#5 1.605   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 1.809 Get:3 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease [24.4 kB]
#5 2.032 Err:3 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease
#5 2.032   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
#5 2.038 Reading package lists...
#5 2.054 W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 2.054 E: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed.
#5 2.054 W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 2.054 E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed.
#5 2.054 W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: GPG error: 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
#5 2.054 E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed.
#5 2.054 W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
#5 2.054 W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
#5 2.054 E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed.
#5 2.054 W: GPG error: https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
#5 2.054 E: The repository 'https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease' is not signed.
#5 2.054 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#5 2.054 E: Sub-process returned an error code
#5 ERROR: executor failed running [/bin/sh -c apt-get update -y]: runc did not terminate sucessfully
@relativisticelectron
Copy link
Contributor

relativisticelectron commented Sep 3, 2022

I cannot reproduce the error. My testing dockerfile is:

FROM docker.io/electronuserland/builder@sha256:403a739b40969a78d0c089274def6a61343f14e76b998a518e79f0c09ededab4
RUN apt-get update -y

sudo docker build -t testing . and gives me

Sending build context to Docker daemon  3.072kB
Step 1/2 : FROM docker.io/electronuserland/builder@sha256:403a739b40969a78d0c089274def6a61343f14e76b998a518e79f0c09ededab4
 ---> e7cac37e0323
Step 2/2 : RUN apt-get update -y
 ---> Running in 2c9ba1955b66
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [148 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [349 kB]
Get:4 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease [24.4 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4644 B]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [366 kB]
Get:12 https://packagecloud.io/github/git-lfs/ubuntu jammy/main amd64 Packages [1086 B]
Get:13 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [283 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [7791 B]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [390 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [679 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [7275 B]
Get:20 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3175 B]
Fetched 22.6 MB in 4s (5310 kB/s)
Reading package lists...
Removing intermediate container 2c9ba1955b66
 ---> f6bbf8b70163
Successfully built f6bbf8b70163
Successfully tagged testing:latest

@louishawkins : Can you put your dockerfile here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants