Cuda-cross-aarch64-10-2 missing in JetPack 4.6's apt repository

Hi,

I’m trying to setup my own cross compile environment for JetPack 4.6.

In JetPack 4.5.1, I was able to download cuda-cross-aarch64-10-2 through apt repository deb https://repo.download.nvidia.com/jetson/x86_64 bionic r32.5. But when I replace r32.5 with r32.6, apt reports E: Unable to locate package cuda-cross-aarch64-10-2 after an apt update.

After investigating the apt repository, I found that https://repo.download.nvidia.com/jetson/x86_64/dists/bionic/r32.6/binary-amd64/Packages is an empty file while https://repo.download.nvidia.com/jetson/x86_64/dists/bionic/r32.5/binary-amd64/Packages is full of contents. That’s the reason why apt cannot find the package.

Can anyone help with keeping JetPack’s apt repository updated? Thanks!

Hi,

Please find the package in the below link:
https://repo.download.nvidia.com/jetson/

Thanks.

I know the package can be found in that link, but I’m trying to build a cross-compile environment container image. Hardcoding the download link is Dockerfile is really strange.

Hi,

Could you share which docker image you use?
We test it on an x86 system, and the package can be located successfully.

$ apt-cache policy cuda-cross-aarch64-10-2
cuda-cross-aarch64-10-2:
  Installed: 10.2.460-1
  Candidate: 10.2.460-1
  Version table:
 *** 10.2.460-1 600
        600 file:/var/cuda-repo-cross-aarch64-ubuntu1804-10-2-local  Packages
        100 /var/lib/dpkg/status
     10.2.89-1 600
        600 file:/var/cuda-repo-10-2-local-10.2.89-cross-aarch64  Packages

Thanks.

Hi,

Here’s my Dockerfile:

FROM ubuntu:18.04
RUN apt update && \
    apt install -y --no-install-recommends \
        apt-transport-https \
        ca-certificates \
        gnupg2 \
    && rm -rf /var/lib/apt/lists/*
RUN apt-key adv --fetch-key http://repo.download.nvidia.com/jetson/jetson-ota-public.asc && \
    echo "deb https://repo.download.nvidia.com/jetson/x86_64 bionic r32.6" > /etc/apt/sources.list.d/jetpack.list && \
    apt update && \
    apt install -y --no-install-recommends \
        cuda-cross-aarch64-10-2 \
    && rm -rf /var/lib/apt/lists/* && \
    ln -s cuda-10.2 /usr/local/cuda

I need to build the image from scratch and without any local deb cache. By replacing r32.6 with r32.5 in the previous Dockerfile, the image builds without any issues, and all the toolchains can work correctly.

The command output in your comment shows that cuda-cross-aarch64-10-2 is from a local apt repository (prefixed with file: instead of repo.download.nvidia.com). The reason why apt cannot find the correct package is that https://repo.download.nvidia.com/jetson/x86_64/dists/bionic/r32.6/binary-amd64/Packages gives an empty file.

I think the solution should be someone at NVIDIA to fill the repository’s Packages file correctly.

Hi,

Thanks for reporting this.

We are working with our internal team to update the link.
Will share more information with you later.

Thanks.

Hi

Thanks for your patience.

Due to the need for the x86_64 repository separation for bionic/xenial.
The x86_64 repositories were changed in r32.6.

Please use the following command instead.

echo "deb https://repo.download.nvidia.com/jetson/x86_64/bionic r32.6 main" > /etc/apt/sources.list.d/jetpack.list

You can find more information in the below document:
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/updating_jetson_and_host.html

Thanks.

Hi.

I’ve confirmed that the new repository is working.

Thanks for all of your hard work!

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