Proplems with libnvidia-compute and libnvidia-gl

Hey!
My new Jetson Nano keep crashing, and I noticed the syslog indicates something like
tar: /var/crash/libnvidia-compute-460.0.crash: Cannot open: Permission denied tar: /var/crash/libnvidia-gl-460.0.crash: Cannot open: Permission denied
I’ve been looking around the forums and saw this solution:
https://forums.developer.nvidia.com/t/issues-with-nvidia-driver-on-unbuntu-18-04-4-lts-errors/112484/

But when I try to run sudo apt --fix-broken install I can see that indeed the libnvidia-compute and libnvidia-gl are not installed but I also gt an error:
dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb (--unpack): trying to overwrite '/usr/lib/aarch64-linux-gnu/libcuda.so', which is also in package nvidia-l4t-cuda 32.4.4-20201016124427 Preparing to unpack .../libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb ... dpkg-query: no packages found matching libnvidia-gl-450 Unpacking libnvidia-gl-460:arm64 (460.32.03-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb (--unpack): trying to overwrite '/usr/share/glvnd/egl_vendor.d/10_nvidia.json', which is also in package nvidia-l4t-3d-core 32.4.4-20201016124427 Errors were encountered while processing: /var/cache/apt/archives/libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb /var/cache/apt/archives/libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

What can it be? I could not find anything.
Thanks.

Have you ever installed packages related to NVIDIA via download from the web site? I could be mistaken, but the items with “-460” seem like they are designed for the data center hardware and not for a Jetson. If you were to have added some “-460” version arm64 software you downloaded separately, then this would likely break things.

Hello,

I’ve got the same problem.
I got these .deb :
libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb
libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb
from the following .sh generated by the procedure using this link : CUDA Toolkit 12.3 Update 1 Downloads | NVIDIA Developer

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa/cuda-ubuntu1804.pin`
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_arm64.deb
sudo dpkg -i cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_arm64.deb
sudo apt-key add /var/cuda-repo-ubuntu1804-11-2-local/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda

The following log (in french sorry, my system speaks french) :

Préparation du dépaquetage de …/libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb …
Dépaquetage de libnvidia-compute-460:arm64 (460.32.03-0ubuntu1) …
dpkg: erreur de traitement de l’archive /var/cuda-repo-ubuntu1804-11-2-local/./libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb (–unpack) :
tentative de remplacement de « /usr/lib/aarch64-linux-gnu/libcuda.so », qui appartient aussi au paquet nvidia-l4t-cuda 32.5.1-20210219084526
Préparation du dépaquetage de …/libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb …
dpkg-query: aucun paquet ne correspond à libnvidia-gl-450
Dépaquetage de libnvidia-gl-460:arm64 (460.32.03-0ubuntu1) …
dpkg: erreur de traitement de l’archive /var/cuda-repo-ubuntu1804-11-2-local/./libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb (–unpack) :
tentative de remplacement de « /usr/share/glvnd/egl_vendor.d/10_nvidia.json », qui appartient aussi au paquet nvidia-l4t-3d-core 32.5.1-20210219084526
Des erreurs ont été rencontrées pendant l’exécution :
/var/cuda-repo-ubuntu1804-11-2-local/./libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb
/var/cuda-repo-ubuntu1804-11-2-local/./libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Until now I didn’t manage to get it fixed.

Thanks, best regards

I managed to “fix” it (it’s a bit lout) like this :

sudo dpkg -i --force-overwrite /var/cuda-repo-ubuntu1804-11-2-local/./libnvidia-compute-460_460.32.03-0ubuntu1_arm64.deb

Like this, I forced the override of “/usr/lib/aarch64-linux-gnu/libcuda.so”
from the deb nvidia-l4t-cuda 32.5.1-20210219084526.

sudo dpkg -i --force-overwrite /var/cuda-repo-ubuntu1804-11-2-local/./libnvidia-gl-460_460.32.03-0ubuntu1_arm64.deb

Like this, I forced the override of /usr/share/glvnd/egl_vendor.d/10_nvidia.json from the deb nvidia-l4t-3d-core 32.5.1-20210219084526

And then I was able to finish installation:

sudo apt install -f
sudo apt update
sudo apt full-upgrade – autoremove

Don’t know yet if there is consequences.
Regards.

The versions of CUDA and GPU drivers not from the matching SDK Manager release are not intended for Jetsons. So far as I know CUDA 11.2 is incompatible with a Jetson. You will be lucky if those work without breaking what is already there. For example, GPU drivers not from SDKM will want a GPU visible via PCIe, and won’t find the integrated GPU (which is directly attached to the memory controller).