$ docker run --runtime=nvidia -it --rm nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-devel /bin/bash
Update to cuda from 11.4 to 11.8
2 apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*curand*" "*cusolver*" "*cusparse*"
3 df -h
4 apt-get update
5 apt-get install vim wget
6 wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/arm64/cuda-ubuntu2004.pin
7 mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
8 wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-tegra-repo-ubuntu2004-11-8-local_11.8.0-1_arm64.deb
9 dpkg -i cuda-tegra-repo-ubuntu2004-11-8-local_11.8.0-1_arm64.deb
10 cp /var/cuda-tegra-repo-ubuntu2004-11-8-local/cuda-tegra-95320BC3-keyring.gpg /usr/share/keyrings/
11 dpkg -i cuda-tegra-repo-ubuntu2004-11-8-local_11.8.0-1_arm64.deb
12 df -h
13 ls
14 ls /usr/local/src/
15 ls /usr/local/cuda-11.4/
16 ls /usr/local/cuda-11.4/targets/
17 apt-get update
18 ls
19 rm cuda-tegra-repo-ubuntu2004-11-8-local_11.8.0-1_arm64.deb
20 apt-get -y install cuda-toolkit-11-8
Refer to :
Simplifying CUDA Upgrades for NVIDIA Jetson Users | NVIDIA Technical Blog
1. Introduction — cuda-installation-guide-linux 12.2 documentation