docker build runs into GPG error
See original GitHub issueWhile running docker build -t- as instructed here in Powershell I get the following error message:
> docker build -t unity-robotics:nav2-slam-example ./
> [+] Building 4.9s (7/13)
> => [internal] load build definition from Dockerfile 0.0s
> => => transferring dockerfile: 3.23kB 0.0s
> => [internal] load .dockerignore 0.0s
> => => transferring context: 2B 0.0s
> => [internal] load metadata for docker.io/dorowu/ubuntu-desktop-lxde-vnc:focal 1.2s
> => [internal] load build context 0.0s
> => => transferring context: 91.34kB 0.0s
> => [1/9] FROM docker.io/dorowu/ubuntu-desktop-lxde-vnc:focal@sha256:07e51eafb6e0923759105eeb8cfc8f0d19be77a212b1 0.0s
> => CACHED [2/9] RUN echo "Set disable_coredump false" >> /etc/sudo.conf 0.0s
> => ERROR [3/9] RUN apt-get update -q && apt-get upgrade -yq && apt-get install -yq wget 3.6s
> ------
> > [3/9] RUN apt-get update -q && apt-get upgrade -yq && apt-get install -yq wget curl git build-essential vim sudo gnupg2 lsb-release locales bash-completion tzdata gosu python3-argcomplete python3-pip && rm -rf /var/lib/apt/lists/*:
> #6 0.356 Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
> #6 0.365 Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
> #6 0.370 Get:3 http://mirrors.ubuntu.com/mirrors.txt Mirrorlist [1061 B]
> #6 0.398 Get:5 http://ftp.nluug.nl/os/Linux/distr/ubuntu focal-updates InRelease [114 kB]
> #6 0.405 Get:4 http://nl.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
> #6 0.411 Get:6 http://osmirror.rug.nl/ubuntu focal-backports InRelease [108 kB]
> #6 0.441 Err:1 http://dl.google.com/linux/chrome/deb stable InRelease
> #6 0.441 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B
> #6 0.513 Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2018 kB]
> #6 0.689 Get:9 https://mirrors.xtom.nl/ubuntu focal-backports/main amd64 Packages [54.2 kB]
> #6 0.735 Get:13 http://mirror.amsiohosting.net/archive.ubuntu.com focal/universe amd64 Packages [11.3 MB]
> #6 0.735 Get:8 http://mirror.serverius.net/ubuntu focal-backports/universe amd64 Packages [27.1 kB]
> #6 0.742 Get:14 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [883 kB]
> #6 0.752 Get:12 http://mirror.hostnet.nl/ubuntu/archive focal/main amd64 Packages [1275 kB]
> #6 0.806 Get:11 http://mirror.nforce.com/pub/linux/ubuntu focal/multiverse amd64 Packages [177 kB]
> #6 0.821 Get:10 http://mirror.eu.kamatera.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
> #6 0.857 Get:15 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [27.5 kB]
> #6 0.862 Get:16 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1386 kB]
> #6 0.959 Ign:18 https://nl.mirrors.clouvider.net/ubuntu focal-updates/multiverse amd64 Packages
> #6 1.316 Get:17 http://ftp.nluug.nl/os/Linux/distr/ubuntu focal-updates/universe amd64 Packages [1161 kB]
> #6 1.470 Get:20 http://ftp.tudelft.nl/archive.ubuntu.com focal-updates/main amd64 Packages [2456 kB]
> #6 1.584 Get:18 http://mirror.amsiohosting.net/archive.ubuntu.com focal-updates/multiverse amd64 Packages [30.2 kB]
> #6 1.896 Get:19 http://ftp.nluug.nl/os/Linux/distr/ubuntu focal-updates/restricted amd64 Packages [1487 kB]
> #6 2.882 Reading package lists...
> #6 3.469 W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B
> #6 3.469 E: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
> ------
> executor failed running [/bin/sh -c apt-get update -q && apt-get upgrade -yq && apt-get install -yq wget curl git build-essential vim sudo gnupg2 lsb-release locales bash-completion tzdata gosu python3-argcomplete python3-pip && rm -rf /var/lib/apt/lists/*]: exit code: 100
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:7
Top Results From Across the Web
GPG error while building docker · Issue #7951 - GitHub
I encountered same problem. git clone https://github.com/open-mmlab/mmdetection.git -b v2.24.1 cd mmdetection/docker docker build - ...
Read more >Troubleshoot "Expired GPG key" Error in Build - CircleCI Support
If you are using a CircleCI pre-built Docker Image and are getting an "Expired GPG key" error in your build. You can resolve...
Read more >How to resolve GPG error when starting PHP docker container?
When I run docker build php-fpm this error is thrown: Sending build context to Docker daemon 3.584kB Step 1/10 : FROM php:7.0.23-fpm ...
Read more >GPG and Signing Error during apt install phase of a docker ...
I am going to try to add the repos GPG keys at the beginning of the build, see if that helps.
Read more >GPG error in Ubuntu 21.04 after second apt-get update during ...
I ran into this problem when I was running the Ubuntu 21.04 image under Rootless Docker, but the apt-get update command worked fine...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have to add a line in the Dockerfile for getting the updated keys for Google Chrome:
in case docker said that the RUN command is not found for the previous line, try
RUN ["/bin/bash", "-c", "wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -"]
it worked for me.the full docker file (couldn’t make a pull request for it )