I have recently installed Cuda toolkit 12.6 compatible package on a Jetson agx orin with jetpack 5.1 but got the above error when running a Cuda application. Below are some information from my system:
I found the link to the 12.2 installation here: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=aarch64-jetson&Compilation=Native&Distribution=Ubuntu&target_version=20.04&target_type=deb_network but I got the error below when running the installation:
sudo apt-get -y install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda : Depends: cuda-12-6 (>= 12.6.2) but it is not going to be installed
libnvidia-decode-565 : Depends: libnvidia-compute-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
nvidia-compute-utils-565 : Depends: libnvidia-compute-565 but it is not going to be installed
nvidia-driver-565-open : Depends: libnvidia-gl-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Depends: libnvidia-compute-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Depends: libnvidia-extra-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Depends: nvidia-utils-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
The following packages have unmet dependencies:
cuda : Depends: cuda-12-6 (>= 12.6.2) but it is not going to be installed
libnvidia-decode-565 : Depends: libnvidia-compute-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Are you able to reflash the device to JetPack 6.1 which can support CUDA 12.6?
sudo apt-get -y install cuda-12-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-12-2 : Depends: cuda-runtime-12-2 (>= 12.2.2) but it is not going to be installed
Depends: cuda-toolkit-12-2 (>= 12.2.2) but it is not going to be installed
libnvidia-decode-565 : Depends: libnvidia-compute-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
nvidia-compute-utils-565 : Depends: libnvidia-compute-565 but it is not going to be installed
nvidia-driver-565-open : Depends: libnvidia-gl-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Depends: libnvidia-compute-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Depends: libnvidia-extra-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
Depends: nvidia-utils-565 (= 565.57.01-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
and when I try to fix the problem I get this:
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libnvidia-compute-565 libnvidia-extra-565 libnvidia-gl-565 nvidia-utils-565
Suggested packages:
nvidia-driver-565
The following NEW packages will be installed:
libnvidia-compute-565 libnvidia-extra-565 libnvidia-gl-565 nvidia-utils-565
0 upgraded, 4 newly installed, 0 to remove and 55 not upgraded.
22 not fully installed or removed.
Need to get 0 B/173 MB of archives.
After this operation, 586 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 269854 files and directories currently installed.)
Preparing to unpack .../libnvidia-compute-565_565.57.01-0ubuntu1_arm64.deb ...
Unpacking libnvidia-compute-565:arm64 (565.57.01-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-565_565.57.01-0ubuntu1_arm64.deb (--unpack):
trying to overwrite '/usr/lib/aarch64-linux-gnu/libcuda.so', which is also in package nvidia-l4t-cuda 35.3.1-20230319081403
Preparing to unpack .../libnvidia-gl-565_565.57.01-0ubuntu1_arm64.deb ...
dpkg-query: no packages found matching libnvidia-gl-535
Unpacking libnvidia-gl-565:arm64 (565.57.01-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-565_565.57.01-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 35.3.1-20230319081403
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libnvidia-extra-565_565.57.01-0ubuntu1_arm64.deb ...
Unpacking libnvidia-extra-565:arm64 (565.57.01-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libnvidia-extra-565_565.57.01-0ubuntu1_arm64.deb (--unpack):
trying to overwrite '/usr/lib/aarch64-linux-gnu/gbm/nvidia-drm_gbm.so', which is also in package nvidia-l4t-gbm 35.3.1-20230319081403
Preparing to unpack .../nvidia-utils-565_565.57.01-0ubuntu1_arm64.deb ...
Unpacking nvidia-utils-565 (565.57.01-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-utils-565_565.57.01-0ubuntu1_arm64.deb (--unpack):
trying to overwrite '/usr/bin/nvidia-xconfig', which is also in package nvidia-l4t-x11 35.3.1-20230319081403
No apport report written because MaxReports is reached already
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-compute-565_565.57.01-0ubuntu1_arm64.deb
/var/cache/apt/archives/libnvidia-gl-565_565.57.01-0ubuntu1_arm64.deb
/var/cache/apt/archives/libnvidia-extra-565_565.57.01-0ubuntu1_arm64.deb
/var/cache/apt/archives/nvidia-utils-565_565.57.01-0ubuntu1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am trying to flash JetPack 6.1 using SDK manager but has a problem with my host computer running on Linux Mint - see picture below. Is there any other method to flash?