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.