I started to have the problem:
GPG error: Kitware APT Repository focal InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
I saw a solution posted on github
opened 12:59PM - 22 Jan 23 UTC
closed 04:52PM - 07 Feb 23 UTC
bug
verify to close
I am trying to run apt update.
```
Sending build context to Docker daemon 4… 3.05MB
Step 1/14 : ARG BASE_IMAGE
Step 2/14 : FROM ${BASE_IMAGE}
---> 3671296a1bac
Step 3/14 : RUN apt-get update && apt-get install -y curl gnupg2 lsb-release && rm -rf /var/lib/apt/lists/* && apt-get clean
---> Running in 27f60d4ba1cd
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:5 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:7 http://packages.ros.org/ros2-testing/ubuntu focal InRelease
Hit:1 https://repo.download.nvidia.com/jetson/x86_64/focal r35.1 InRelease
Get:8 https://apt.kitware.com/ubuntu focal InRelease [15.5 kB]
Hit:9 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Err:8 https://apt.kitware.com/ubuntu focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 42D5A192B819C5DA
Hit:10 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease
Reading package lists...
W: GPG error: https://apt.kitware.com/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 42D5A192B819C5DA
E: The repository 'https://apt.kitware.com/ubuntu focal InRelease' is not signed.
The command '/bin/bash -c apt-get update && apt-get install -y curl gnupg2 lsb-release && rm -rf /var/lib/apt/lists/* && apt-get clean' returned a non-zero code: 100
Failed to build base image: isaac_ros_dev-x86_64, aborting.
```
It fails due to some GPG error. Any image I based on this image will have errors running apt update, which means that apt update && ... always fails.
After quick web surfing, I found a popular fix:
```
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 42D5A192B819C5DA
sudo apt-get update
```
But it didn't help..
But it’s not clear where I add it as the docker file appears to be built via script.
Thanks @lowellm
I’m following your issue with the engineering.
Raffaello
I should say after that I get:
6.803 E: The repository ‘Kitware APT Repository focal InRelease’ is not signed.
So basically it doesn’t work to download the key, people talked about modifying the docker file but as far as I see the docker file doesn’t exist, it’s built by the build script.
Hi @lowellm
I’m building an Isaac ROS docker from scratch and don’t see the GPG error on Kitware.
How are you making/building your docker?
I followed the instructions back when I first installed it, I believe I downloaded the premade docker image? I corrected the error via the github link via modifying the docker file but it shouldn’t be required.
1 Like
maybe it was stored on your device in an old docker version.
Using the latest image everything works correctly.
system
Closed
May 17, 2024, 2:28pm
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.