HELP: 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 attempted to install nvidia driver but for some reason, I am not able to get it installed.

soon@soon:~$ sudo apt install nvidia-driver-525
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
nvidia-driver-525 is already the newest version (525.147.05-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

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

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

Secure boot is disabled.
OS: Ubuntu 22.04