Cannot fetch OTA keys when using L4T 32.6.1

Environment

GPU Type: GTX 1060
Nvidia Driver Version: 470.82.01
Operating System + Version: Ubuntu 18.04
Docker Version: 20.10.7

Description

I am creating docker images for l4t, this example dockerfile works fine for 32.4.2:

# Working 32.4
FROM nvcr.io/nvidia/l4t-base:r32.4.2

RUN apt-get update

RUN apt-key adv --fetch-key https://repo.download.nvidia.com/jetson/jetson-ota-public.asc

# continued...

However, when upgrading to 32.6.1 it fails to fetch the keys. Also gpg is not installed, so that needs installing first:

# Broken 32.6
FROM nvcr.io/nvidia/l4t-base:r32.6.1

RUN apt-get update
# Have to install as it is now missing from base image.
RUN apt-get install -y gnupg2

RUN apt-key adv --fetch-key https://repo.download.nvidia.com/jetson/jetson-ota-public.asc

# continued...

The above results in this error message:

Executing: /tmp/apt-key-gpghome.qyyyd6aAcq/gpg.1.sh --fetch-key https://repo.download.nvidia.com/jetson/jetson-ota-public.asc
gpg: requesting key from 'https://repo.download.nvidia.com/jetson/jetson-ota-public.asc'
gpg: WARNING: unable to fetch URI https://repo.download.nvidia.com/jetson/jetson-ota-public.asc: General error

This means I cannot subsequently download the OTA packages I need.

What is going on here? Is there something different I am meant to do to get the keys for the new releases? It is an issue with the base images?

All the documents I’ve found do something similar to me.

I’ve found a work around, not using apt-key adv to download and add the certificate. No idea what caused the original issue though:

FROM nvcr.io/nvidia/l4t-base:r32.6.1

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y gnupg2 curl

# Manually download and add cerficate, as adv doesn't work on 3.6 for some reason.
RUN curl -L https://repo.download.nvidia.com/jetson/jetson-ota-public.asc | apt-key add -

# Install OTA packages...
RUN echo "deb https://repo.download.nvidia.com/jetson/common r32.6 main" > /etc/apt/sources.list.d/nvidia-l4t-apt-source.list \
    && echo "deb https://repo.download.nvidia.com/jetson/t194 r32.6 main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list

RUN apt-get update
RUN apt-get install -y cuda-compiler-10-2

This doesn’t really look like a bug with nvidia, but I’ll leave the post here for anyone else experiencing the issue.

3 Likes

Thanks for your sharing!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.