Nvidia-smi results in Failed to initialize NVML: Driver/library version mismatch (Ubuntu 20.04.4 LTS)

I’ve read this post but it didn’t work.

nvidia-smi :
Failed to initialize NVML: Driver/library version mismatch

lsb_release -a :
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

lspci -v | grep VGA :
00:02.0 VGA compatible controller: Cirrus Logic GD 5446 (prog-if 00 [VGA controller])
00:05.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 SUPER] (rev a1) (prog-if 00 [VGA controller])

dkms status :
nvidia, 510.47.03, 5.8.0-050800-generic, x86_64: installed

nvcc --version :
Cuda compilation tools, release 11.6, V11.6.124
Build cuda_11.6.r11.6/compiler.31057947_0

nvidia-bug-report.sh :
nvidia-bug-report.log.gz (337.5 KB)

from that file:
API mismatch: the client has the version 510.68.02, but this kernel module has the version 510.60.02. Please make sure that this kernel module and all NVIDIA driver components have the same version.

what should I do? thanks

Please post the output of
dpkg -l |grep nvidia
and
ls -l /usr/lib/x86_64-linux-gnu/*nvidia*

ls_output.txt (5.9 KB)
dpkg_output.txt (2.5 KB)

I think i should downgrade it to 510.60.02 but i don’t know how
i’ve tried to install it from NVIDIA-Linux-x86_64-510.60.02.run but it has generated some errors

you installed runfile driver 510.68.02 over packaged driver 510.47.03
Please see this:
https://forums.developer.nvidia.com/t/black-screen-with-nvidia-turned-on-instead-intel-and-failed-to-initialize-nvml-driver-library-version-mismatch/210594/8?u=generix

I’m so grateful.
You’re the best

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