Nvidia-smi gives "No devies were found" - incorrect gcc version

I’m on Ubuntu 22.04, kernel: 6.5.0-25-generic

Anytime I attempt to use sudo apt upgrade I get the dpkg error below:

dpkg: error processing package nvidia-driver-535 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-25-generic
Errors were encountered while processing:
 nvidia-dkms-535
 nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)

Unfortunately, running

sudo apt-get remove --purge nvidia-* -y
sudo apt autoremove
sudo apt install nvidia-utils-535
sudo apt install nvidia-utils-535-server
sudo reboot

and checking nvidia-smi the output is:

penguins@penguins-XPS-15-9520:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Output from lspci | grep 3D:
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)

Output from lspci | grep vga:
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)

Output from cat /proc/driver/nvidia/version:
cat: /proc/driver/nvidia/version: No such file or directory

If anyone can provide any sort of direction for where to go from here I’d really appreciate it, would love to be able to update/upgrade packages :D

Please try reinstalling the kernel headers
sudo apt install --reinstall linux-headers-$(uname -r)
This should trigger a driver compile. In case it still fails, this should reference a make.log you can attach.

1 Like

Thanks for the help! I’ve attached the file, and the output from sudo apt install --reinstall linux-headers-$(uname -r) is below

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 5 not upgraded.
Need to get 3,449 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu jammy-security/main amd64 linux-headers-6.5.0-25-generic amd64 6.5.0-25.25~22.04.1 [3,449 kB]
Fetched 3,449 kB in 0s (7,135 kB/s)                      
(Reading database ... 214835 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.5.0-25-generic_6.5.0-25.25~22.04.1_amd64.deb ...
Unpacking linux-headers-6.5.0-25-generic (6.5.0-25.25~22.04.1) over (6.5.0-25.25~22.04.1) ...
Setting up linux-headers-6.5.0-25-generic (6.5.0-25.25~22.04.1) ...

nvidia-installer.log (567 Bytes)

Did you uninstall the packaged driver meanwhile? Where does the installer log come from? It contains nearly nothing.

1 Like

Not that I’m aware of, I just reran the following and checked the .log file again but I don’t think it even got updated.

penguins@penguins-XPS-15-9520:~$ sudo apt install nvidia-utils-535-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-utils-535-server is already the newest version (535.161.07-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

penguins@penguins-XPS-15-9520:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

penguins@penguins-XPS-15-9520:~$ sudo apt install --reinstall linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3,449 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu jammy-security/main amd64 linux-headers-6.5.0-25-generic amd64 6.5.0-25.25~22.04.1 [3,449 kB]
Fetched 3,449 kB in 1s (3,143 kB/s)                       
(Reading database ... 214835 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.5.0-25-generic_6.5.0-25.25~22.04.1_amd64.deb ...
Unpacking linux-headers-6.5.0-25-generic (6.5.0-25.25~22.04.1) over (6.5.0-25.25~22.04.1) ...
Setting up linux-headers-6.5.0-25-generic (6.5.0-25.25~22.04.1) ...

Also, should probably note that I had to get the log file from /vars/log/ as /var/lib/dkms/ doesn’t exist for some reason.

Odd. Please post the output of
dkms status

It wasn’t installed (odd indeed) so just ran the install and tried the same commands above, log file didn’t update and the /var/log/dkms/ path still doesn’t exist.

dkms:

Command 'dkms' not found, but can be installed with:
sudo apt install dkms

Retry:

penguins@penguins-XPS-15-9520:~$ sudo apt install nvidia-utils-535-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-utils-535-server is already the newest version (535.161.07-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

penguins@penguins-XPS-15-9520:~$ sudo apt install --reinstall linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3,449 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu jammy-security/main amd64 linux-headers-6.5.0-25-generic amd64 6.5.0-25.25~22.04.1 [3,449 kB]
Fetched 3,449 kB in 2s (2,200 kB/s)                         
(Reading database ... 214886 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.5.0-25-generic_6.5.0-25.25~22.04.1_amd64.deb ...
Unpacking linux-headers-6.5.0-25-generic (6.5.0-25.25~22.04.1) over (6.5.0-25.25~22.04.1) ...
Setting up linux-headers-6.5.0-25-generic (6.5.0-25.25~22.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.5.0-25-generic
   ...done.

penguins@penguins-XPS-15-9520:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Please post the output of
dpkg -l |grep nvidia
and
dkms status

1 Like
penguins@penguins-XPS-15-9520:~$ dpkg -l |grep nvidia
rc  libnvidia-compute-535:amd64                535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA libcompute package
ii  libnvidia-compute-535-server:amd64         535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA libcompute package
ii  nvidia-utils-535-server                    535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA Server Driver support binaries
penguins@penguins-XPS-15-9520:~$ dkms status

penguins@penguins-XPS-15-9520:~$ 

The driver isn’t installed at all. Backtracking your posts shows you uninstalled the driver and then just installed the utils. Please install the driver
sudo apt install nvidia-driver-535

1 Like

Oh whoops lmao, my bad. Unfortunatelt that still gives an error, the end of the output and the .log file is below:

Consult /var/lib/dkms/nvidia/535.161.07/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
 installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-encode-535:amd64 (535.161.07-0ubuntu0.22.04.1) ...
Setting up libnvidia-encode-535:i386 (535.161.07-0ubuntu0.22.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-driver-535:
 nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.161.07-1); however:
  Package nvidia-dkms-535 is not configured yet.
 nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.161.07); however:
  Package nvidia-dkms-535 is not configured yet.

dpkg: error processing package nvidia-driver-535 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-25-generic
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Errors were encountered while processing:
 nvidia-dkms-535
 nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)

make.log (37.1 KB)

Also, the output of the commands you gav eme before I ran the install one (not sure ifthey’re necessary but):

penguins@penguins-XPS-15-9520:~$ dpkg -l |grep nvidia
ii  libnvidia-cfg1-535:amd64                   535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-535                       535.161.07-0ubuntu0.22.04.1             all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-535:amd64                535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA libcompute package
ii  libnvidia-compute-535:i386                 535.161.07-0ubuntu0.22.04.1             i386         NVIDIA libcompute package
rc  libnvidia-compute-535-server:amd64         535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA libcompute package
ii  libnvidia-decode-535:amd64                 535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-535:i386                  535.161.07-0ubuntu0.22.04.1             i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-535:amd64                 535.161.07-0ubuntu0.22.04.1             amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-535:i386                  535.161.07-0ubuntu0.22.04.1             i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-535:amd64                  535.161.07-0ubuntu0.22.04.1             amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-535:amd64                   535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-535:i386                    535.161.07-0ubuntu0.22.04.1             i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-535:amd64                     535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-535:i386                      535.161.07-0ubuntu0.22.04.1             i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-535                   535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA compute utilities
iF  nvidia-dkms-535                            535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA DKMS package
iU  nvidia-driver-535                          535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA driver metapackage
ii  nvidia-firmware-535-535.161.07             535.161.07-0ubuntu0.22.04.1             amd64        Firmware files used by the kernel module
ii  nvidia-kernel-common-535                   535.161.07-0ubuntu0.22.04.1             amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-535                   535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.17.1                                all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            510.47.03-0ubuntu1                      amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-535                           535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18.2                                  all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-535              535.161.07-0ubuntu0.22.04.1             amd64        NVIDIA binary Xorg driver

penguins@penguins-XPS-15-9520:~$ dkms status
nvidia/535.161.07: added

Ok, known issue, the ubuntu kernel team changed the gcc version used. Please install the package gcc-12, then reinstall the headers again to trigger the driver compile.

1 Like

No dice unfortunately, can’t even install gcc-12.

penguins@penguins-XPS-15-9520:~$ sudo apt install gcc-12
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc-12 is already the newest version (12.3.0-1ubuntu1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nvidia-dkms-535 (535.161.07-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-535.161.07 DKMS files...
Deleting module nvidia-535.161.07 completely from the DKMS tree.
Loading new nvidia-535.161.07 DKMS files...
Building for 6.5.0-25-generic
Building for architecture x86_64
Building initial module for 6.5.0-25-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-535.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-25-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.161.07/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
 installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-535:
 nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.161.07-1); however:
  Package nvidia-dkms-535 is not configured yet.
 nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.161.07); however:
  Package nvidia-dkms-535 is not configured yet.

dpkg: error processing package nvidia-driver-535 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-25-generic
Errors were encountered while processing:
 nvidia-dkms-535
 nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)

Log: make.log (37.1 KB)
Crash file )saved as log so i could upload): nvidia-dkms-535.0-crash.log (37.8 KB)

Please post the output of
gcc -v
and
cc -v

1 Like
penguins@penguins-XPS-15-9520:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

penguins@penguins-XPS-15-9520:~$ cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

Doesn’t gcc need to be version 12 or something to be compatible with the nvidia driver?

gcc 12 is installed but wasn’t switched to as it seems so the incompatible gcc-11 is still used. Please check if update alternatives are installed:

update-alternatives --query gcc
update-alternatives --query cc
1 Like

Doesn’t look like it unfortunately. Also, thank you so much for your time <3 much appreciate

penguins@penguins-XPS-15-9520:~$ update-alternatives --query gcc
update-alternatives: error: no alternatives for gcc

penguins@penguins-XPS-15-9520:~$ update-alternatives --query cc
Name: cc
Link: /usr/bin/cc
Slaves:
 cc.1.gz /usr/share/man/man1/cc.1.gz
Status: auto
Best: /usr/bin/gcc
Value: /usr/bin/gcc

Alternative: /usr/bin/gcc
Priority: 20
Slaves:
 cc.1.gz /usr/share/man/man1/gcc.1.gz

Maybe just uninstall gcc-11 and then reinstall gcc 12.

1 Like

Okay I think I did that properly

penguins@penguins-XPS-15-9520:~$ sudo apt remove gcc-11
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'gcc-11' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libasan6 libgcc-11-dev libstdc++-11-dev libtsan0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-535 (535.161.07-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-535.161.07 DKMS files...
Deleting module nvidia-535.161.07 completely from the DKMS tree.
Loading new nvidia-535.161.07 DKMS files...
Building for 6.5.0-25-generic
Building for architecture x86_64
Building initial module for 6.5.0-25-generic
Secure Boot not enabled on this system.
Done.

nvidia.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-25-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-25-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-25-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-25-generic/updates/dkms/

nvidia-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-25-generic/updates/dkms/

depmod...
Setting up nvidia-driver-535 (535.161.07-0ubuntu0.22.04.1) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-25-generic

penguins@penguins-XPS-15-9520:~$ sudo apt install gcc-12
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc-12 is already the newest version (12.3.0-1ubuntu1~22.04).
The following packages were automatically installed and are no longer required:
  libasan6 libgcc-11-dev libstdc++-11-dev libtsan0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

penguins@penguins-XPS-15-9520:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 12.3.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-12-ALHxjy/gcc-12-12.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-ALHxjy/gcc-12-12.3.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)

Should I try sudo apt install nvidia-driver-535 again?

The driver should already be compiled and ready to go according to the output you provided.
dkms status
should show ‘installed’

1 Like