Having issues to load the 4070 GPU on ubuntu nvidia-smi giving driver load error

Hi,

I am recently installed 4070 GPU and it was woking before but then the driver is not loading anymore nvidia-smi is giving error as.

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

I have driver nvidia-driver-555 installed with ubuntu-drivers devices.

Searched internet, tried to install different versions of driver again after purging the driver, but it is not running.

❯ uname -r
6.8.0-41-generic

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

❯ lspci | grep RTX
01:00.0 VGA compatible controller: NVIDIA Corporation AD103 [GeForce RTX 4070 Ti SUPER] (rev a1)

❯ dpkg --list | grep nvidia
ii libnvidia-cfg1-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-555 555.58.02-0ubuntu0~gpu24.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA libcompute package
ii libnvidia-decode-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-egl-wayland1:amd64 1:1.1.13-1build1 amd64 Wayland EGL External Platform library – shared library
ii libnvidia-encode-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-555:amd64 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii nvidia-compute-utils-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA compute utilities
ii nvidia-dkms-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA DKMS package
ii nvidia-driver-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA driver metapackage
ii nvidia-firmware-555-555.58.02 555.58.02-0ubuntu0~gpu24.04.1 amd64 Firmware files used by the kernel module
ii nvidia-kernel-common-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.17.2 all Tools to enable NVIDIA’s Prime
ii nvidia-settings 510.47.03-0ubuntu4 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.3 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-555 555.58.02-0ubuntu0~gpu24.04.1 amd64 NVIDIA binary Xorg driver

Not sure how to fix this error:

❯ sudo modprobe nvidia
modprobe: ERROR: …/libkmod/libkmod-module.c:968 kmod_module_insert_module() could not find module by name=‘off’
modprobe: ERROR: could not insert ‘off’: Unknown symbol in module, or unknown parameter (see dmesg)
nvidia-bug-report.log.gz (160.4 KB)

Hi there @adityavit and welcome to the NVIDIA developer forums.

You have a broken dependency tree due to wrong installation method. Your Purge failed. Check around lines 9416 in the log file you attached. There are leftovers of the 550 driver in your system.

Try purging again and resolving dependency errors manually until you really uninstalled all traces of NVIDIA drivers.

And do that from a console login, not the GUI. That way you also get around NVIDIA kernel modules being loaded and causing issues.

Thanks