Failed to initialize NVML: Driver/library version mismatch on ubuntu 22.10

Good day everyone,

I have a computer with 2 Nvidia cards A4000 run os 22.10.
I have install drive with command: sudo apt install nvidia-driver-525 nvidia-dkms-525
But now when I run the command: nvidia-smi it show the error “Failed to initialize NVML: Driver/library version mismatch”
I have trying several solution I found in the internet but it not working. So could you please help me to solve this issue.
nvidia-bug-report.log.gz (149.9 KB)

Thank you very much.

[ 1349.007795] NVRM: API mismatch: the client has the version 525.60.11, but
               NVRM: this kernel module has the version 470.161.03.  Please
               NVRM: make sure that this kernel module and all NVIDIA driver
               NVRM: components have the same version.

Please check
dkms status
for the installed kernel modules and remove the 470 one, then regenerate the initrd.

Thank you for reply me.
I have install all ndivia drive with command: sudo apt purge nvidia-* && sudo apt purge libnvidia-*
but when I check:
dkms status
$ cat /proc/driver/nvidia/version
$ cat /sys/module/nvidia/version

It still have module 470.161.03

Please help me this issue. Thank you very much

Please post the output of
dpkg -i |grep nvidia

Thank you for your help.
That problem when first time I install drive with run file and other time I install with command.
The problem is solved. I use run file again and it worked now.