[CUDA Error] system has unsupported display driver / cuda driver combination (code: 803)

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:

uname -m && cat /etc/*release
aarch64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION=“Ubuntu 20.04.6 LTS”

R35 (release), REVISION: 3.1, GCID: 32827747, BOARD: t186ref, EABI: aarch64, DATE: Sun Mar 19 15:19:21 UTC 2023

NAME=“Ubuntu”
VERSION=“20.04.6 LTS (Focal Fossa)”

Package: nvidia-jetpack
Version: 5.1.1-b56
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 5.1.1-b56), nvidia-jetpack-dev (= 5.1.1-b56)
Homepage: Jetson - Embedded AI Computing Platform | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_5.1.1-b56_arm64.deb
Size: 29304
SHA256: 7b6c8c6cb16028dcd141144b6b0bbaa762616d0a47aafa3c3b720cb02b2c8430
SHA1: 387e4e47133c4235666176032af0f2ec86461dbb
MD5sum: 0a8692031bf35cc46f7a498e2937bda9
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

Hi,

Which CUDA package do you install?

We don’t have CUDA 12.6 for the JetPack 5 environment as it is Ubuntu 20.04.
The latest upgradable CUDA toolkit for JetPack 5 is 12.2.

Thanks.

Hi,

I have several CUDA package installed in my system and if I point my PATH and LD_LIBRARY_PATH variables to CUDA 12.0 gives the same error.

Thanks,

If I point my PATH and LD_LIBRARY_PATH variables to CUDA 11.4 then I got the following error:

[CUDA Error] CUDA driver version is insufficient for CUDA runtime version (code: 35)

Can you send me the link to CUDA toolkit 12.2 installation?

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).

Hi,

The error is triggered by installing CUDA 12.6.

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?

Thanks.

We can reflash to JetPack 6.1 but only if CUDA 12.2 doesn’t work.

How can I uninstall CUDA 12.6 so that I can install CUDA 12.2?

Thanks!

Hi,

Are you able to specify the installed CUDA version?
For example: changing sudo apt-get -y install cuda to:

$ sudo apt-get -y install cuda-12-2

Thanks.

Hi,
I’ve got the same error with 12-2, see below:

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)

Hi,

It looks like there are many dependency issues in your environment.
Are you able to reflash the device with JetPack 5 and try the CUDA 12.2 again?

Thanks.

Hi,
We have some work to do until the end of next week and will do the reflash the device with JetPack 6.1 and try CUDA 12.6.

Thanks, Khanh

Hi again,

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?

Thanks, Khanh

That’s not the suggested OS, and never tried that before.
See System Requirements — SDK Manager 2.1.0 documentation

Thanks! I had installed Ubuntu 22.4 on my host and successfully reflashed JP6.1

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