Running "nvidia-smi" command shows "No Devices Found"

Hello Forum members, I own a custom-built PC equipped with an external RTX 3070 GPU and no internal GPU. Recently, I’ve been working on installing drivers for the GPU, and while I’ve successfully installed them, I encountered an error when running the ‘nvidia-smi’ command. Despite trying numerous methods suggested in the forum, none have resolved my issue. I kindly seek your assistance in addressing the mentioned error, and I have attached the nvidia-log file for your reference.
nvidia-bug-report.log.gz (189.2 KB)

Hi there @rajkumar.iyer and welcome to the NVIDIA developer forums.

You have three different mismatching driver/kernel modules installed:

Dec  5 14:41:08 teleop-Nuvo-6108GC kernel: [    3.577940] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  545.23.08  Mon Nov  6 23:49:37 UTC 2023
...
Dec  5 14:41:29 teleop-Nuvo-6108GC kernel: [   24.694199] NVRM: API mismatch: the client has the version 525.147.05, but
Dec  5 14:41:29 teleop-Nuvo-6108GC kernel: [   24.694199] NVRM: this kernel module has the version 545.23.08.  Please
Dec  5 14:41:29 teleop-Nuvo-6108GC kernel: [   24.694199] NVRM: make sure that this kernel module and all NVIDIA driver
Dec  5 14:41:29 teleop-Nuvo-6108GC kernel: [   24.694199] NVRM: components have the same version.
...
Dec  5 14:56:15 teleop-Nuvo-6108GC kernel: [    3.581989] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  535.129.03  Thu Oct 19 18:56:32 UTC 2023

Please remove all drivers (purge), reboot into console mode and reinstall just one driver.

Thanks!

Thank you very much for your response, I did follow the below listed steps however I still couldn’t solve the error, If you dont mind could you please support by listing a step-by-step guideline for me to follow. I’m relatively a new linux user. Thanks

  • sudo apt purge nvidia-* && sudo apt purge libnvidia-*
  • dpkg -l nvidia-*|grep ^ii #ensured nothing returned

Downloaded the latest driver version from nvidia download driver

  • sudo init 3 #rebooted into terminal
  • cd $HOME/Downloads/Nvidia/
  • $ chmod a+x NVIDIA-Linux-x86_64-390.144.run
  • $ sudo ./NVIDIA-Linux-x86_64-390.144.run
  • $ sudo reboot