Nvidia Driver is not working on Ubuntu 22.04

Hi ! I have nvidia rtx 2060 max Q on my laptop and I am using Ubuntu 22.04. I have installed nvidia-driver-515(proprietary) and it was doing well.
But I was doing any things related to graphics for a month and today when I needed, I try to run:
nvidia-smi
It give message:
“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 don’t know what happen I was running well before but suddenly it doesn’t now.
I am hopping to get help me fix this problem. I have also attach nvidia bug report log file below.
nvidia-bug-report.log.gz (59.6 KB)

Also couple of months ago I had installed virtualbox. Would it be the cause of problem? I had remove the virtual box from the system.

1 Like

There are no kernel modules installed. Please try installing the kernel headers
sudo apt install linux-headers-$(uname -r)
and then post the output of
dkms status

1 Like

sudo apt install linux-headers-$(uname -r)
This command didn’t install linux-header and outputs linux-headers-5.15.0-52-generic is already the newest version
and dkms status return nothings.

Ok, please post the output of
dpkg -l |grep nvidia

Here is the output:

Please try running
sudo dkms add nvidia/515.76
sudo dkms install nvidia/515.76
post any errors and the output of dkms status afterwards.

1 Like

First command give following error.
Screenshot from 2022-10-30 11-09-26

Sorry, just noticed the nvidia-dkms package is missing. Does it pull in the correct package if you just run
sudo apt install nvidia-dkms
?

ya installing nvidia-dkms kinda works with command
sudo apt install nvidia-dkms-515
then running dkms status shows nvidia installed with some warning.
Should I be concern with this warning ? If yes then how can I solve it?

This is not necessarily an issue. Does the driver work after reboot?

On second look, there’s a problem wirh the version, dkms shows version 515.65.01 but the dpkg showed 515.76 installed. I suspect the ubuntu mirror you’re using is missing the 515.76 dkms package so it didn’t get installed earlier. Please check for that.

Yes, the driver works after reboot.
May be my mirror doesn’t contain 515.76 dkms package.
Anyway, thanks for you help.