Uninstall CUDA12.2 and Replace with CUDA11.8 (Jetson AGX Xavier)

I used the following instructions from https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=aarch64-jetson&Compilation=Native&Distribution=Ubuntu&target_version=20.04&target_type=deb_local to install 12.2. I was trying to install cuda-11.8

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/arm64/cuda-ubuntu2004.pinsudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-tegra-repo-ubuntu2004-11-8-local_11.8.0-1_arm64.debsudo dpkg -i cuda-tegra-repo-ubuntu2004-11-8-local_11.8.0-1_arm64.debsudo cp /var/cuda-tegra-repo-ubuntu2004-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/sudo apt-get updatesudo apt-get -y install cuda

I am now trying to delete 12.2 but cant seem to find it. Any advice?

Assuming the above commands completed, it seems you’ve installed 11.8. Why do you think you have 12.2 and what does “nvcc -V” show?

nvcc -V still shows 11.4 as the main one.

In the worst case scenario is it possible to reflash my Jetson Xavier and then specify when flashing with the Nvidia SDK Manager the verison of CUDA id like to install?

You might be better to ask in the AGX forum.