Apt --fix-broken install

After trying to install Cuda 12.5 on Jetpack 6.0, cuda-drivers-545 installation failed. I have seen something like this before on previous Jetson.
What’s most frustrating is that while every doc says: use apt --fix-broken install It never quite works. What’s puzzling is that even the command: apt --fix-broken install recommend you to try apt --fix-broken install after it fails…

This is never supported on Jetson platforms.
You don’t need to install any kind of graphics drivers on Jetson.

545 will be attempted if I try to install Cuda 12-5, and according to this Jetson appears as a valid option.
Screen Shot 2024-06-16 at 10.34.01 PM.pdf (73.4 KB)

What’s your complete log?
What APT repo did you add?

Normally all those stuff is packed into the single nvidia-jetpack package for Jetson.
You don’t need to manually install other stuff.

I followed this:
Please ensure your device is configured per the CUDA Tegra Setup Documentation.

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/arm64/cuda-ubuntu2204.pinsudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda-tegra-repo-ubuntu2204-12-5-local_12.5.0-1_arm64.debsudo dpkg -i cuda-tegra-repo-ubuntu2204-12-5-local_12.5.0-1_arm64.debsudo cp /var/cuda-tegra-repo-ubuntu2204-12-5-local/cuda-*-keyring.gpg /usr/share/keyrings/sudo apt-get updatesudo apt-get -y install cuda-toolkit-12-5 cuda-compat-12-5

In section 6.2.1 it lists CUDA 12.3 12.4 and 12.5 as supported and compatible upgrade packages, and Cuda 12.2 as default.
but it doesn't say that Jetpack 6.0 comes with these

So after re-flashing, I was able to upgrade to CUDA 12.5 smoothly. The part I missed was is this:

Only a single CUDA upgrade package can be installed at any point in time on a given system. While installing a new CUDA upgrade package, the previous version of the installed upgrade package will be removed and replaced with the new one. The default drivers (originally installed with the NVIDIA JetPack and part of the L4T BSP) will be retained by the installer. The application has the ability to use either the default version of CUDA (originally installed with NVIDIA JetPack) or the one installed by the upgrade package. The LD_LIBRARY_PATH variable can be used to choose the required version.

I believe the reason why I ran into the broken installs before was that I had Cuda 12.3 installed when I tried to install 12.5. I suspect that " the previous version of the installed upgrade package will be removed and replaced with the new one" did not work as expected.

You can close this one. Thanks!

1 Like

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