Cannot fetch OTA keys when using L4T 32.6.1


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


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

# Working 32.4

RUN apt-get update

RUN apt-key adv --fetch-key

# 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

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

# continued...

The above results in this error message:

Executing: /tmp/apt-key-gpghome.qyyyd6aAcq/ --fetch-key
gpg: requesting key from ''
gpg: WARNING: unable to fetch URI 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:


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 | apt-key add -

# Install OTA packages...
RUN echo "deb r32.6 main" > /etc/apt/sources.list.d/nvidia-l4t-apt-source.list \
    && echo "deb 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.

1 Like

Thanks for your sharing!

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