TensorRT
TensorRT copied to clipboard
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FFBD47E3231754F
Description
Environment
TensorRT Version: 8.4 NVIDIA GPU: NVIDIA GeForce RTX 3060 Laptop GPU NVIDIA Driver Version: Driver Version: 515.65.01 CUDA Version: Using container CUDNN Version: Using Container Operating System: Ubuntu 20.04 Python Version (if applicable): Tensorflow Version (if applicable): PyTorch Version (if applicable): Baremetal or Container (if so, version): Ubuntu 20.04 cross-compile for Jetson (aarch64) with cuda-11.4.2 (JetPack SDK)
Steps To Reproduce
When executing ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-jetpack-cuda11.4
The execution fails at step 24/33
Step 24/33 : RUN dpkg -i /pdk_files/cuda-repo-cross-aarch64*.deb /pdk_files/cuda-repo-ubuntu*_amd64.deb && apt-get update && apt-get install -y cuda-cross-aarch64 && rm -rf /var/lib/apt/lists/*
---> Running in 903a9550204e
Selecting previously unselected package cuda-repo-cross-aarch64-ubuntu2004-11-4-local.
(Reading database ... 20878 files and directories currently installed.)
Preparing to unpack .../cuda-repo-cross-aarch64-ubuntu2004-11-4-local_11.4.14-1_all.deb ...
Unpacking cuda-repo-cross-aarch64-ubuntu2004-11-4-local (11.4.14-1) ...
Selecting previously unselected package cuda-repo-ubuntu2004-11-4-local.
Preparing to unpack .../cuda-repo-ubuntu2004-11-4-local_11.4.14-470.131-1_amd64.deb ...
Unpacking cuda-repo-ubuntu2004-11-4-local (11.4.14-470.131-1) ...
Setting up cuda-repo-cross-aarch64-ubuntu2004-11-4-local (11.4.14-1) ...
The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo cp /var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local/cuda-045251B2-keyring.gpg /usr/share/keyrings/
Setting up cuda-repo-ubuntu2004-11-4-local (11.4.14-470.131-1) ...
The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo cp /var/cuda-repo-ubuntu2004-11-4-local/cuda-3231754F-keyring.gpg /usr/share/keyrings/
Get:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease [1575 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-4-local InRelease [1575 B]
Get:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease [1575 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-4-local InRelease [1575 B]
Err:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 524C8D58045251B2
Err:2 file:/var/cuda-repo-ubuntu2004-11-4-local InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FFBD47E3231754F
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Hit:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [903 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2139 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1200 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2600 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [30.3 kB]
Reading package lists...
W: GPG error: file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 524C8D58045251B2
E: The repository 'file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease' is not signed.
W: GPG error: file:/var/cuda-repo-ubuntu2004-11-4-local InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FFBD47E3231754F
E: The repository 'file:/var/cuda-repo-ubuntu2004-11-4-local InRelease' is not signed.
The command '/bin/sh -c dpkg -i /pdk_files/cuda-repo-cross-aarch64*.deb /pdk_files/cuda-repo-ubuntu*_amd64.deb && apt-get update && apt-get install -y cuda-cross-aarch64 && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
@kevinch-nv ^ ^
Just for reference, I was able to finish building the docker by making the following changes.
Install CUDA cross compile toolchain
RUN dpkg -i /pdk_files/cuda-repo-cross-aarch64*.deb /pdk_files/cuda-repo-ubuntu*_amd64.deb \
&& apt-get update \
changed to
RUN dpkg -i /pdk_files/cuda-repo-cross-aarch64*.deb /pdk_files/cuda-repo-ubuntu*_amd64.deb
RUN cp /var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local/cuda-045251B2-keyring.gpg /usr/share/keyrings/
RUN cp /var/cuda-repo-ubuntu2004-11-4-local/cuda-3231754F-keyring.gpg /usr/share/keyrings/
RUN apt-get update \
&& apt-get install -y cuda-cross-aarch64 \
&& rm -rf /var/lib/apt/lists/*
Not sure however if this is the correct thing to do.
check this before your step
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 524C8D58045251B2
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6FFBD47E3231754F
@stqwzr
Step 24/35 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 524C8D58045251B2
---> Running in bdf93d9f7e5a
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.JGs4kUR2L6/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 524C8D58045251B2
gpg: keyserver receive failed: No data
The command '/bin/sh -c apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 524C8D58045251B2' returned a non-zero code: 2
when i add a llvm sources on my system(ubuntu),I also had a similar problem, but I found a solution from askubuntu.The solution is when you add a software sources ,run the following command: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - then it will make your error goes away. from https://askubuntu.com/questions/895786/error-getting-access-to-llvm-debian-ubuntu-nightly-packages
Closing inactive issue for more than 3 weeks per our policy, thanks all!