I am trying to install the nvidia drivers in my Ubuntu 18.04 Asus ROG laptop with nvidia geforce RTX 3060 graphics card.
Everytime I install the nvidia drivers, it says to reboot and on reboot, I lose my ubuntu GUI. When I purge remove the nvidia driver and reboot again, I am able to get back the Ubuntu GUI.
When I had lost my GUI after tge driver installation, I went to the tty2 screen and did a dmesg. I am getting that Nvidia module verification failed : signature key missing and thus nvidia is tainting kernel.
I have tried installing nvidia from all available methods, using ubuntu-drivers autoinstall, using apt-get, installing from the .run file and also from the ppa graphics method. I tried out these methods in both Ubuntu 20.04 and 18.04. My secure boot is disabled. I am using X11 for display.
Kindly help me out with this issue at the earliest and guide me towards how to best install the compatible drivers for my laptop, OS and graphics card.
read the Readme about graphics switching.
Otherwise use prime-select to choose your prime profile (intel|nvidia|on-demand).
That message is normal when the driver is loading, because of the drivers proprietary license.
If all that isn’t working, create a bug-report: run nvidia-bug-report.sh as root (from the tty if you get the black screen) and attach the resulting file here.
I tried to install driver 495 on my ROG G531GV Laptop with RTX2060 Mobile and after installation via “sudo apt install nvidia-driver-495” it didn’t boot at all,I used root tty to purge nvidia* and it booted up, installed asusctl but the graphics command won’t work,so the Nvidia driver not installed or being used yet. nvidia-bug-report.log.gz (91.4 KB)
Delete your /etc/X11/xorg.conf - not suited for an Optimus laptop.
There is no log of the installation in the bug report.
Make sure you have the kernel headers installed: sudo apt install linux-headers-$(uname -r)
Watch the output, to make sure they are installed.
Then sudo apt reinstall nvidia-driver-495.
Then check dkms status - that it says “installed” for the nvidia module.
If all is good to this point: sudo prime-select to choose your prime profile (intel|nvidia|on-demand).
Reboot.