Unable to Install CUDA Versions Less Than 12 on Ubuntu 20.04 Due to Nvidia Driver 510 Compatibility Issues

Hello NVIDIA Community

We have been working with Deepstream 6.1, which relies on Nvidia driver version 510, CUDA 11.6.0, and Ubuntu 20.04. Recently, we encountered an issue where CUDA was no longer available on our system, necessitating a reinstallation. We followed the instructions on the Nvidia website:

‘’’

‘’’

Despite purging all Nvidia files and even reinstalling Ubuntu 20.04 prior to reinstalling CUDA, we encountered the following error related to driver 510 installation:

‘’’
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libatomic1:i386 libbsd0:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libedit2:i386
libegl-mesa0:i386 libegl1:i386 libelf1:i386 libexpat1:i386 libffi7:i386 libgbm1:i386 libgl1:i386 libgl1-mesa-dri:i386 libglapi-mesa:i386
libgles2:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libllvm12:i386 libnvidia-cfg1-510 libnvidia-common-510 libnvidia-compute-510:i386
libnvidia-decode-510 libnvidia-decode-510:i386 libnvidia-encode-510 libnvidia-encode-510:i386 libnvidia-extra-510 libnvidia-fbc1-510
libnvidia-fbc1-510:i386 libnvidia-gl-510 libnvidia-gl-510:i386 libopengl0:i386 libpciaccess0:i386 libsensors5:i386 libstdc++6:i386 libvulkan1:i386
libwayland-client0:i386 libwayland-server0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386
libxcb-present0:i386 libxcb-randr0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcb-xfixes0:i386 libxcb1:i386 libxdmcp6:i386 libxext6:i386
libxfixes3:i386 libxshmfence1:i386 libxxf86vm1:i386 mesa-vulkan-drivers:i386 nvidia-compute-utils-510 nvidia-dkms-510 nvidia-kernel-common-510
nvidia-kernel-source-510 nvidia-prime nvidia-settings nvidia-utils-510 screen-resolution-extra xserver-xorg-video-nvidia-510
Suggested packages:
lm-sensors:i386
The following NEW packages will be installed:
libatomic1:i386 libbsd0:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libedit2:i386
libegl-mesa0:i386 libegl1:i386 libelf1:i386 libexpat1:i386 libffi7:i386 libgbm1:i386 libgl1:i386 libgl1-mesa-dri:i386 libglapi-mesa:i386
libgles2:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libllvm12:i386 libnvidia-cfg1-510 libnvidia-common-510 libnvidia-compute-510:i386
libnvidia-decode-510 libnvidia-decode-510:i386 libnvidia-encode-510 libnvidia-encode-510:i386 libnvidia-extra-510 libnvidia-fbc1-510
libnvidia-fbc1-510:i386 libnvidia-gl-510 libnvidia-gl-510:i386 libopengl0:i386 libpciaccess0:i386 libsensors5:i386 libstdc++6:i386 libvulkan1:i386
libwayland-client0:i386 libwayland-server0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386
libxcb-present0:i386 libxcb-randr0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcb-xfixes0:i386 libxcb1:i386 libxdmcp6:i386 libxext6:i386
libxfixes3:i386 libxshmfence1:i386 libxxf86vm1:i386 mesa-vulkan-drivers:i386 nvidia-compute-utils-510 nvidia-dkms-510 nvidia-driver-510
nvidia-kernel-common-510 nvidia-kernel-source-510 nvidia-prime nvidia-settings nvidia-utils-510 screen-resolution-extra
xserver-xorg-video-nvidia-510
0 upgraded, 69 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/311 MB of archives.
After this operation, 1,180 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-cfg1-510 510.47.03-0ubuntu1 [79.3 kB]
Get:2 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-common-510 510.47.03-0ubuntu1 [10.3 kB]
Get:3 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-compute-510 510.47.03-0ubuntu1 [25.1 MB]
Get:4 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-decode-510 510.47.03-0ubuntu1 [1,236 kB]
Get:5 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-decode-510 510.47.03-0ubuntu1 [1,253 kB]
Get:6 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-encode-510 510.47.03-0ubuntu1 [44.7 kB]
Get:7 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-encode-510 510.47.03-0ubuntu1 [41.7 kB]
Get:8 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-extra-510 510.47.03-0ubuntu1 [49.1 kB]
Get:9 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-fbc1-510 510.47.03-0ubuntu1 [50.3 kB]
Get:10 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-fbc1-510 510.47.03-0ubuntu1 [46.9 kB]
Get:11 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-gl-510 510.47.03-0ubuntu1 [23.0 MB]
Get:12 file:/var/cuda-repo-ubuntu2004-11-6-local libnvidia-gl-510 510.47.03-0ubuntu1 [168 MB]
Get:13 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-compute-utils-510 510.47.03-0ubuntu1 [351 kB]
Get:14 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-kernel-source-510 510.47.03-0ubuntu1 [29.1 MB]
Get:15 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-kernel-common-510 510.47.03-0ubuntu1 [20.5 MB]
Get:16 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-dkms-510 510.47.03-0ubuntu1 [29.5 kB]
Get:17 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-utils-510 510.47.03-0ubuntu1 [386 kB]
Get:18 file:/var/cuda-repo-ubuntu2004-11-6-local xserver-xorg-video-nvidia-510 510.47.03-0ubuntu1 [1,396 kB]
Get:19 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-driver-510 510.47.03-0ubuntu1 [446 kB]
Get:20 file:/var/cuda-repo-ubuntu2004-11-6-local nvidia-settings 510.47.03-0ubuntu1 [899 kB]
Extracting templates from packages: 100%
Selecting previously unselected package libbsd0:i386.
(Reading database … 254419 files and directories currently installed.)
Preparing to unpack …/00-libbsd0_0.10.0-1_i386.deb …
Unpacking libbsd0:i386 (0.10.0-1) …
Selecting previously unselected package libelf1:i386.
Preparing to unpack …/01-libelf1_0.176-1.1ubuntu0.1_i386.deb …
Unpacking libelf1:i386 (0.176-1.1ubuntu0.1) …
Selecting previously unselected package libexpat1:i386.
Preparing to unpack …/02-libexpat1_2.2.9-1ubuntu0.6_i386.deb …
Unpacking libexpat1:i386 (2.2.9-1ubuntu0.6) …
Selecting previously unselected package libffi7:i386.
Preparing to unpack …/03-libffi7_3.3-4_i386.deb …
Unpacking libffi7:i386 (3.3-4) …
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack …/04-libstdc++6_10.5.0-1ubuntu1~20.04_i386.deb …
Unpacking libstdc++6:i386 (10.5.0-1ubuntu1~20.04) …
Selecting previously unselected package libdrm2:i386.
Preparing to unpack …/05-libdrm2_2.4.107-8ubuntu1~20.04.2_i386.deb …
Unpacking libdrm2:i386 (2.4.107-8ubuntu1~20.04.2) …
Selecting previously unselected package libedit2:i386.
Preparing to unpack …/06-libedit2_3.1-20191231-1_i386.deb …
Unpacking libedit2:i386 (3.1-20191231-1) …
Selecting previously unselected package libxau6:i386.
Preparing to unpack …/07-libxau6_1%3a1.0.9-0ubuntu1_i386.deb …
Unpacking libxau6:i386 (1:1.0.9-0ubuntu1) …
Selecting previously unselected package libxdmcp6:i386.
Preparing to unpack …/08-libxdmcp6_1%3a1.1.3-0ubuntu1_i386.deb …
Unpacking libxdmcp6:i386 (1:1.1.3-0ubuntu1) …
Selecting previously unselected package libxcb1:i386.
Preparing to unpack …/09-libxcb1_1.14-2_i386.deb …
Unpacking libxcb1:i386 (1.14-2) …
Selecting previously unselected package libx11-6:i386.
Preparing to unpack …/10-libx11-6_2%3a1.6.9-2ubuntu1.6_i386.deb …
Unpacking libx11-6:i386 (2:1.6.9-2ubuntu1.6) …
Selecting previously unselected package libxext6:i386.
Preparing to unpack …/11-libxext6_2%3a1.3.4-0ubuntu1_i386.deb …
Unpacking libxext6:i386 (2:1.3.4-0ubuntu1) …
Selecting previously unselected package libatomic1:i386.
Preparing to unpack …/12-libatomic1_10.5.0-1ubuntu1~20.04_i386.deb …
Unpacking libatomic1:i386 (10.5.0-1ubuntu1~20.04) …
Selecting previously unselected package libdrm-amdgpu1:i386.
Preparing to unpack …/13-libdrm-amdgpu1_2.4.107-8ubuntu1~20.04.2_i386.deb …
Unpacking libdrm-amdgpu1:i386 (2.4.107-8ubuntu1~20.04.2) …
Selecting previously unselected package libpciaccess0:i386.
Preparing to unpack …/14-libpciaccess0_0.16-0ubuntu1_i386.deb …
Unpacking libpciaccess0:i386 (0.16-0ubuntu1) …
Selecting previously unselected package libdrm-intel1:i386.
Preparing to unpack …/15-libdrm-intel1_2.4.107-8ubuntu1~20.04.2_i386.deb …
Unpacking libdrm-intel1:i386 (2.4.107-8ubuntu1~20.04.2) …
Selecting previously unselected package libdrm-nouveau2:i386.
Preparing to unpack …/16-libdrm-nouveau2_2.4.107-8ubuntu1~20.04.2_i386.deb …
Unpacking libdrm-nouveau2:i386 (2.4.107-8ubuntu1~20.04.2) …
Selecting previously unselected package libdrm-radeon1:i386.
Preparing to unpack …/17-libdrm-radeon1_2.4.107-8ubuntu1~20.04.2_i386.deb …
Unpacking libdrm-radeon1:i386 (2.4.107-8ubuntu1~20.04.2) …
Selecting previously unselected package libwayland-server0:i386.
Preparing to unpack …/18-libwayland-server0_1.18.0-1ubuntu0.1_i386.deb …
Unpacking libwayland-server0:i386 (1.18.0-1ubuntu0.1) …
Selecting previously unselected package libgbm1:i386.
Preparing to unpack …/19-libgbm1_21.2.6-0ubuntu0.1~20.04.2_i386.deb …
Unpacking libgbm1:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Selecting previously unselected package libglapi-mesa:i386.
Preparing to unpack …/20-libglapi-mesa_21.2.6-0ubuntu0.1~20.04.2_i386.deb …
Unpacking libglapi-mesa:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Selecting previously unselected package libwayland-client0:i386.
Preparing to unpack …/21-libwayland-client0_1.18.0-1ubuntu0.1_i386.deb …
Unpacking libwayland-client0:i386 (1.18.0-1ubuntu0.1) …
Selecting previously unselected package libx11-xcb1:i386.
Preparing to unpack …/22-libx11-xcb1_2%3a1.6.9-2ubuntu1.6_i386.deb …
Unpacking libx11-xcb1:i386 (2:1.6.9-2ubuntu1.6) …
Selecting previously unselected package libxcb-dri2-0:i386.
Preparing to unpack …/23-libxcb-dri2-0_1.14-2_i386.deb …
Unpacking libxcb-dri2-0:i386 (1.14-2) …
Selecting previously unselected package libxcb-dri3-0:i386.
Preparing to unpack …/24-libxcb-dri3-0_1.14-2_i386.deb …
Unpacking libxcb-dri3-0:i386 (1.14-2) …
Selecting previously unselected package libxcb-present0:i386.
Preparing to unpack …/25-libxcb-present0_1.14-2_i386.deb …
Unpacking libxcb-present0:i386 (1.14-2) …
Selecting previously unselected package libxcb-sync1:i386.
Preparing to unpack …/26-libxcb-sync1_1.14-2_i386.deb …
Unpacking libxcb-sync1:i386 (1.14-2) …
Selecting previously unselected package libxcb-xfixes0:i386.
Preparing to unpack …/27-libxcb-xfixes0_1.14-2_i386.deb …
Unpacking libxcb-xfixes0:i386 (1.14-2) …
Selecting previously unselected package libxshmfence1:i386.
Preparing to unpack …/28-libxshmfence1_1.3-1_i386.deb …
Unpacking libxshmfence1:i386 (1.3-1) …
Selecting previously unselected package libegl-mesa0:i386.
Preparing to unpack …/29-libegl-mesa0_21.2.6-0ubuntu0.1~20.04.2_i386.deb …
Unpacking libegl-mesa0:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Selecting previously unselected package libllvm12:i386.
Preparing to unpack …/30-libllvm12_1%3a12.0.0-3ubuntu1~20.04.5_i386.deb …
Unpacking libllvm12:i386 (1:12.0.0-3ubuntu1~20.04.5) …
Selecting previously unselected package libsensors5:i386.
Preparing to unpack …/31-libsensors5_1%3a3.6.0-2ubuntu1.1_i386.deb …
Unpacking libsensors5:i386 (1:3.6.0-2ubuntu1.1) …
Selecting previously unselected package libvulkan1:i386.
Preparing to unpack …/32-libvulkan1_1.2.131.2-1_i386.deb …
Unpacking libvulkan1:i386 (1.2.131.2-1) …
Selecting previously unselected package libgl1-mesa-dri:i386.
Preparing to unpack …/33-libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_i386.deb …
Unpacking libgl1-mesa-dri:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Selecting previously unselected package libxcb-glx0:i386.
Preparing to unpack …/34-libxcb-glx0_1.14-2_i386.deb …
Unpacking libxcb-glx0:i386 (1.14-2) …
Selecting previously unselected package libxcb-shm0:i386.
Preparing to unpack …/35-libxcb-shm0_1.14-2_i386.deb …
Unpacking libxcb-shm0:i386 (1.14-2) …
Selecting previously unselected package libxfixes3:i386.
Preparing to unpack …/36-libxfixes3_1%3a5.0.3-2_i386.deb …
Unpacking libxfixes3:i386 (1:5.0.3-2) …
Selecting previously unselected package libxxf86vm1:i386.
Preparing to unpack …/37-libxxf86vm1_1%3a1.1.4-1build1_i386.deb …
Unpacking libxxf86vm1:i386 (1:1.1.4-1build1) …
Selecting previously unselected package libglx-mesa0:i386.
Preparing to unpack …/38-libglx-mesa0_21.2.6-0ubuntu0.1~20.04.2_i386.deb …
Unpacking libglx-mesa0:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Selecting previously unselected package libnvidia-cfg1-510:amd64.
Preparing to unpack …/39-libnvidia-cfg1-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking libnvidia-cfg1-510:amd64 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-common-510.
Preparing to unpack …/40-libnvidia-common-510_510.47.03-0ubuntu1_all.deb …
Unpacking libnvidia-common-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-compute-510:i386.
Preparing to unpack …/41-libnvidia-compute-510_510.47.03-0ubuntu1_i386.deb …
Unpacking libnvidia-compute-510:i386 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-decode-510:i386.
Preparing to unpack …/42-libnvidia-decode-510_510.47.03-0ubuntu1_i386.deb …
Unpacking libnvidia-decode-510:i386 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-decode-510:amd64.
Preparing to unpack …/43-libnvidia-decode-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking libnvidia-decode-510:amd64 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-encode-510:amd64.
Preparing to unpack …/44-libnvidia-encode-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking libnvidia-encode-510:amd64 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-encode-510:i386.
Preparing to unpack …/45-libnvidia-encode-510_510.47.03-0ubuntu1_i386.deb …
Unpacking libnvidia-encode-510:i386 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-extra-510:amd64.
Preparing to unpack …/46-libnvidia-extra-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking libnvidia-extra-510:amd64 (510.47.03-0ubuntu1) …
Selecting previously unselected package libglvnd0:i386.
Preparing to unpack …/47-libglvnd0_1.3.2-1~ubuntu0.20.04.2_i386.deb …
Unpacking libglvnd0:i386 (1.3.2-1~ubuntu0.20.04.2) …
Selecting previously unselected package libglx0:i386.
Preparing to unpack …/48-libglx0_1.3.2-1~ubuntu0.20.04.2_i386.deb …
Unpacking libglx0:i386 (1.3.2-1~ubuntu0.20.04.2) …
Selecting previously unselected package libgl1:i386.
Preparing to unpack …/49-libgl1_1.3.2-1~ubuntu0.20.04.2_i386.deb …
Unpacking libgl1:i386 (1.3.2-1~ubuntu0.20.04.2) …
Selecting previously unselected package libnvidia-fbc1-510:i386.
Preparing to unpack …/50-libnvidia-fbc1-510_510.47.03-0ubuntu1_i386.deb …
Unpacking libnvidia-fbc1-510:i386 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-fbc1-510:amd64.
Preparing to unpack …/51-libnvidia-fbc1-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking libnvidia-fbc1-510:amd64 (510.47.03-0ubuntu1) …
Selecting previously unselected package libegl1:i386.
Preparing to unpack …/52-libegl1_1.3.2-1~ubuntu0.20.04.2_i386.deb …
Unpacking libegl1:i386 (1.3.2-1~ubuntu0.20.04.2) …
Selecting previously unselected package libopengl0:i386.
Preparing to unpack …/53-libopengl0_1.3.2-1~ubuntu0.20.04.2_i386.deb …
Unpacking libopengl0:i386 (1.3.2-1~ubuntu0.20.04.2) …
Selecting previously unselected package libgles2:i386.
Preparing to unpack …/54-libgles2_1.3.2-1~ubuntu0.20.04.2_i386.deb …
Unpacking libgles2:i386 (1.3.2-1~ubuntu0.20.04.2) …
Selecting previously unselected package libnvidia-gl-510:i386.
Preparing to unpack …/55-libnvidia-gl-510_510.47.03-0ubuntu1_i386.deb …
dpkg-query: no packages found matching libnvidia-gl-450
Unpacking libnvidia-gl-510:i386 (510.47.03-0ubuntu1) …
Selecting previously unselected package libnvidia-gl-510:amd64.
Preparing to unpack …/56-libnvidia-gl-510_510.47.03-0ubuntu1_amd64.deb …
dpkg-query: no packages found matching libnvidia-gl-450
Unpacking libnvidia-gl-510:amd64 (510.47.03-0ubuntu1) …
Selecting previously unselected package libxcb-randr0:i386.
Preparing to unpack …/57-libxcb-randr0_1.14-2_i386.deb …
Unpacking libxcb-randr0:i386 (1.14-2) …
Selecting previously unselected package mesa-vulkan-drivers:i386.
Preparing to unpack …/58-mesa-vulkan-drivers_21.2.6-0ubuntu0.1~20.04.2_i386.deb …
Unpacking mesa-vulkan-drivers:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Selecting previously unselected package nvidia-compute-utils-510.
Preparing to unpack …/59-nvidia-compute-utils-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-compute-utils-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package nvidia-kernel-source-510.
Preparing to unpack …/60-nvidia-kernel-source-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-kernel-source-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package nvidia-kernel-common-510.
Preparing to unpack …/61-nvidia-kernel-common-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-kernel-common-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package nvidia-dkms-510.
Preparing to unpack …/62-nvidia-dkms-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-dkms-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package nvidia-utils-510.
Preparing to unpack …/63-nvidia-utils-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-utils-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package xserver-xorg-video-nvidia-510.
Preparing to unpack …/64-xserver-xorg-video-nvidia-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking xserver-xorg-video-nvidia-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package nvidia-driver-510.
Preparing to unpack …/65-nvidia-driver-510_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-driver-510 (510.47.03-0ubuntu1) …
Selecting previously unselected package nvidia-prime.
Preparing to unpack …/66-nvidia-prime_0.8.16~0.20.04.2_all.deb …
Unpacking nvidia-prime (0.8.16~0.20.04.2) …
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack …/67-screen-resolution-extra_0.18build1_all.deb …
Unpacking screen-resolution-extra (0.18build1) …
Selecting previously unselected package nvidia-settings.
Preparing to unpack …/68-nvidia-settings_510.47.03-0ubuntu1_amd64.deb …
Unpacking nvidia-settings (510.47.03-0ubuntu1) …
Setting up libexpat1:i386 (2.2.9-1ubuntu0.6) …
Setting up libx11-xcb1:i386 (2:1.6.9-2ubuntu1.6) …
Setting up libpciaccess0:i386 (0.16-0ubuntu1) …
Setting up libxau6:i386 (1:1.0.9-0ubuntu1) …
Setting up nvidia-prime (0.8.16~0.20.04.2) …
Setting up libglvnd0:i386 (1.3.2-1~ubuntu0.20.04.2) …
Setting up libnvidia-compute-510:i386 (510.47.03-0ubuntu1) …
Setting up libffi7:i386 (3.3-4) …
Setting up libopengl0:i386 (1.3.2-1~ubuntu0.20.04.2) …
Setting up libnvidia-common-510 (510.47.03-0ubuntu1) …
Setting up libgles2:i386 (1.3.2-1~ubuntu0.20.04.2) …
Setting up nvidia-kernel-source-510 (510.47.03-0ubuntu1) …
Setting up nvidia-utils-510 (510.47.03-0ubuntu1) …
Setting up libnvidia-cfg1-510:amd64 (510.47.03-0ubuntu1) …
Setting up libatomic1:i386 (10.5.0-1ubuntu1~20.04) …
Setting up libnvidia-fbc1-510:amd64 (510.47.03-0ubuntu1) …
Setting up nvidia-compute-utils-510 (510.47.03-0ubuntu1) …
Warning: The home dir /nonexistent you specified can’t be accessed: No such file or directory
Adding system user nvidia-persistenced' (UID 128) ... Adding new group nvidia-persistenced’ (GID 135) …
Adding new user nvidia-persistenced' (UID 128) with group nvidia-persistenced’ …
Not creating home directory `/nonexistent’.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service → /lib/systemd/system/nvidia-persistenced.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-powerd.service → /lib/systemd/system/nvidia-powerd.service.
Setting up libsensors5:i386 (1:3.6.0-2ubuntu1.1) …
Setting up libglapi-mesa:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Setting up libvulkan1:i386 (1.2.131.2-1) …
Setting up screen-resolution-extra (0.18build1) …
Setting up libdrm2:i386 (2.4.107-8ubuntu1~20.04.2) …
Setting up libxshmfence1:i386 (1.3-1) …
Setting up nvidia-settings (510.47.03-0ubuntu1) …
Setting up libbsd0:i386 (0.10.0-1) …
Setting up libelf1:i386 (0.176-1.1ubuntu0.1) …
Setting up libnvidia-extra-510:amd64 (510.47.03-0ubuntu1) …
Setting up libstdc++6:i386 (10.5.0-1ubuntu1~20.04) …
Setting up libnvidia-decode-510:amd64 (510.47.03-0ubuntu1) …
Setting up nvidia-kernel-common-510 (510.47.03-0ubuntu1) …
update-initramfs: deferring update (trigger activated)
Setting up libdrm-amdgpu1:i386 (2.4.107-8ubuntu1~20.04.2) …
Setting up xserver-xorg-video-nvidia-510 (510.47.03-0ubuntu1) …
Setting up libwayland-client0:i386 (1.18.0-1ubuntu0.1) …
Setting up libwayland-server0:i386 (1.18.0-1ubuntu0.1) …
Setting up libxdmcp6:i386 (1:1.1.3-0ubuntu1) …
Setting up libdrm-nouveau2:i386 (2.4.107-8ubuntu1~20.04.2) …
Setting up libxcb1:i386 (1.14-2) …
Setting up libxcb-xfixes0:i386 (1.14-2) …
Setting up nvidia-dkms-510 (510.47.03-0ubuntu1) …
update-initramfs: deferring update (trigger activated)

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf

A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
/usr/sbin/initramfs -u


*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***


INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-510.47.03 DKMS files…
Building for 5.15.0-107-generic
Building for architecture x86_64
Building initial module for 5.15.0-107-generic
Error! Bad return status for module build on kernel: 5.15.0-107-generic (x86_64)
Consult /var/lib/dkms/nvidia/510.47.03/build/make.log for more information.
dpkg: error processing package nvidia-dkms-510 (–configure):
installed nvidia-dkms-510 package post-installation script subprocess returned error exit status 10
Setting up libgbm1:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Setting up libdrm-radeon1:i386 (2.4.107-8ubuntu1~20.04.2) …
Setting up libxcb-glx0:i386 (1.14-2) …
Setting up libedit2:i386 (3.1-20191231-1) …
Setting up libdrm-intel1:i386 (2.4.107-8ubuntu1~20.04.2) …
Setting up libxcb-shm0:i386 (1.14-2) …
Setting up libnvidia-encode-510:amd64 (510.47.03-0ubuntu1) …
Setting up libxcb-present0:i386 (1.14-2) …
Setting up libnvidia-gl-510:amd64 (510.47.03-0ubuntu1) …
Setting up libxcb-sync1:i386 (1.14-2) …
Setting up libllvm12:i386 (1:12.0.0-3ubuntu1~20.04.5) …
Setting up libxcb-dri2-0:i386 (1.14-2) …
Setting up libxcb-randr0:i386 (1.14-2) …
Setting up libx11-6:i386 (2:1.6.9-2ubuntu1.6) …
dpkg: dependency problems prevent configuration of nvidia-driver-510:
nvidia-driver-510 depends on nvidia-dkms-510 (= 510.47.03-0ubuntu1); however:
Package nvidia-dkms-510 is not configured yet.

dpkg: error processing package nvidia-driver-510 (–configure):
dependency problems - leaving unconfigured
Setting up libxcb-dri3-0:i386 (1.14-2) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-vulkan-drivers:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Setting up libgl1-mesa-dri:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Setting up libxext6:i386 (2:1.3.4-0ubuntu1) …
Setting up libxxf86vm1:i386 (1:1.1.4-1build1) …
Setting up libegl-mesa0:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Setting up libxfixes3:i386 (1:5.0.3-2) …
Setting up libegl1:i386 (1.3.2-1~ubuntu0.20.04.2) …
Setting up libnvidia-decode-510:i386 (510.47.03-0ubuntu1) …
Setting up libglx-mesa0:i386 (21.2.6-0ubuntu0.1~20.04.2) …
Setting up libglx0:i386 (1.3.2-1~ubuntu0.20.04.2) …
Setting up libnvidia-encode-510:i386 (510.47.03-0ubuntu1) …
Setting up libgl1:i386 (1.3.2-1~ubuntu0.20.04.2) …
Setting up libnvidia-fbc1-510:i386 (510.47.03-0ubuntu1) …
Setting up libnvidia-gl-510:i386 (510.47.03-0ubuntu1) …
Processing triggers for desktop-file-utils (0.24-1ubuntu3) …
Processing triggers for mime-support (3.64ubuntu1) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for libc-bin (2.31-0ubuntu9.15) …
Processing triggers for man-db (2.9.1-1) …
Processing triggers for dbus (1.12.16-2ubuntu2.3) …
Processing triggers for initramfs-tools (0.136ubuntu6.7) …
update-initramfs: Generating /boot/initrd.img-5.15.0-107-generic
Errors were encountered while processing:
nvidia-dkms-510
nvidia-driver-510
E: Sub-process /usr/bin/dpkg returned an error code (1)
‘’’

It appears that the CUDA installation process also attempts to install the Nvidia driver, and the error pertains to the driver installation.

To avoid conflicts with any residual Nvidia files from previous installations, we reformatted and reinstalled Ubuntu 20.04. However, we discovered that Nvidia driver version 510 is no longer listed in the ‘Additional Drivers’ section of ‘Software and Updates.’ This suggests that Ubuntu 20.04 no longer supports Nvidia driver 510. Reinstalling CUDA 11.6 after this fresh Ubuntu installation still results in the same error.

We also tried installing CUDA 11.8, which includes Nvidia driver 520, but encountered the same error.

Previously, we did not experience this issue with CUDA 11.6 and Nvidia driver 510.

These experiments were conducted on several PCs, all resulting in the same error.

Additionally, we tested CUDA version 12.x, which includes Nvidia driver version 535, on both Ubuntu 20.04 and 22.04, and found no issues.

It seems we can no longer install CUDA versions less than 12 on Ubuntu, causing significant problems as our previous SO files are incompatible with our DeepStream applications.

Can you confirm this issue? If not, how should we troubleshoot the installation of CUDA versions less than 12?

Similar issue faced while trying to install CUDA version 11.8 on Ubuntu 22.04.
Preferred driver automatically installed by Ubuntu 22.04 was 545...
When attempted to install CUDA 11.8, returns the similar error with no graphics card support later.
In Software & Updates > Additional Drivers > NVIDIA 545 driver is no longer available.
So I installed 535, the next recommended driver from Ubuntu, but the problem behavior is exact.