Nvidia-smi prints "Failed to initialize NVML: Driver/library version mismatch" (Ubuntu 20.04.5 LTS)

I am trying to run nvidia-smi, but without success. I have tried reinstalling cuda, deleting everything, and installing again, but nothing worked.

The output of some commands if needed:

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

$ uname -r
5.15.0-56-generic

$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 525.60.11 Wed Nov 23 23:04:03 UTC 2022
GCC version: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)

$ dpkg -l | grep nvidia-driver
ii nvidia-driver-525 525.85.05-0ubuntu0.20.04.1 amd64 NVIDIA driver metapackage

$ dkms status
nvidia, 525.85.05, 5.15.0-56-generic, x86_64: installed
nvidia, 525.85.05, 5.4.0-144-generic, x86_64: installed

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Mon_Oct_24_19:12:58_PDT_2022
Cuda compilation tools, release 12.0, V12.0.76
Build cuda_12.0.r12.0/compiler.31968024_0

$ lspci -v | grep VGA
lspci: Unable to load libkmod resources: error -12
03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 52) (prog-if 00 [VGA controller])
31:00.0 VGA compatible controller: NVIDIA Corporation Device 2231 (rev a1) (prog-if 00 [VGA controller])
4b:00.0 VGA compatible controller: NVIDIA Corporation Device 2231 (rev a1) (prog-if 00 [VGA controller])
b1:00.0 VGA compatible controller: NVIDIA Corporation Device 2231 (rev a1) (prog-if 00 [VGA controller])
ca:00.0 VGA compatible controller: NVIDIA Corporation Device 2231 (rev a1) (prog-if 00 [VGA controller])

Output of nvidia-bug-report.sh:
nvidia-bug-report.log.gz (102.4 KB)

What should I do? Any help will be appreciated.