NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

Hi everyone,

I’m having trouble installing the Nvidia driver on my machine.
when I run nvidia-smi, I get:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Running nvidia-settings:

ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system

(nvidia-settings:23848): GLib-GObject-CRITICAL **: 23:52:40.964: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

Running dkms status:

nvidia, 460.84, 5.3.0-050300-generic, x86_64: installed
nvidia, 460.84, 5.4.0-74-generic, x86_64: installed

I used this nvidia documentation to install the nvidia driver.

Graphic card: nvidia geforce rtx 3060

OS: Ubuntu 18.04
Kernel version: 5.3.0-050300-generic

nvidia-bug-report:
nvidia-bug-report.log.gz (617.1 KB)