NVIDIA driver is not loaded. Ubuntu 18.10

Hello,
I have a similar issue using: Ubuntu 21.04 5.12.11-051211-generic and GeForce GTX 1650 Ti Mobile

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-settings:
ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:27690): GLib-GObject-CRITICAL **: 11:43:16.219: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 11:43:16.227: PRIME: No offloading required. Abort
** Message: 11:43:16.227: PRIME: is it supported? no

dkms status:
nvidia, 460.91.03: added

no blacklist_nvidia.conf file exists

When I try dkms install nvidia/460.91.03 I get:
Error! Your kernel headers for kernel 5.12.11-051211-generic cannot be found.
Please install the linux-headers-5.12.11-051211-generic package,
or use the --kernelsourcedir option to tell DKMS where it’s located

Please find the nvidia-bug-report.log.gz file attached.

Any help will be very much appreciated! Thanks!
nvidia-bug-report.log.gz (127.7 KB)

Great solution, which worked for me. While I guess I’m more risky as I chose automatic updates and I hear this may cause this issue. I’m testing a solution to re-create the blacklist file for nvidia and chattr +i the file. Let’s see if it occurs again. :)

Hi Generix,

Thank you so much for the pointers! I managed to get it resolved by downgrading my kernel to 5.10.0

I am also having problems with my driver in Ubuntu 18.04 with a GPU Geforce RTX 3060 and CPU intel core i7. I have installed the driver by all the methods I have seen online, but on all of them I get the following after introducing the command nvidia-smi:

“NVIDIA-SMI has failed becnvidia-bug-report.log.gz (1.0 MB)
ause it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running”

Right now I am trying with the driver 460, but I have also tried with 470.

I don have the file:

“/lib/modprobe.d/blacklist-nvidia.conf”

If I introduce the command sudo prime-select nvidia, I get:

“Info: the nvidia profile is already set”

I attach my bug report. If any one knows what is going on, I would really appreciate the help.

nvidia-bug-report.log.gz (1.0 MB)

Thanks.

Hello,

I have the same problems as everyone else. I cannot get the nvidia drivers to load.

Ubuntu 20.04.3 LTS (Intel core i7 960 @ 3.20GHz x8)
nVidia GeForce GT 240

  • Package nvidia-prime is installed
  • nvidia profile already set
  • No blacklist-nvidia.conf file in modprobe.d directory.
  • No nvidia entry in /etc/modprobe.d/blacklist.conf
  • No secure boot option in BIOS.

I have tried installing a few different nvidia drivers (470, 440, 340) but I haven’t gotten anyone to work.

If anyone could figure out what is going on, I would really appreciate the help.

nvidia-bug-report.log.gz (129.0 KB)

Thanks

Problem solved: updated drivers, purged gnome, reinstalled mate.

Ubuntu system does not recognize GPU Nvidia GeForce GTX 1660 Ti

I have a similar problem and I’d appreciate help on this. My configuration below:
Microsoft Surface Book 3
Ubuntu 18.04.6 LTS (single OS, previously it was windows 10)
fresh ubuntu
Secure boot disabled in BIOS
Minimum requirements were fulfilled Chapter 2. Minimum Requirements*

Before driver installation, system does not recognize GPU:


$ lspci -v | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 8a52 (rev 07) (prog-if 00 [VGA controller])
$ lspci | grep 3D
$ lspci | egrep -i "vga|display|3d"
00:02.0 VGA compatible controller: Intel Corporation Device 8a52 (rev 07)

I downloaded driver NVIDIA-Linux-x86_64-470.74.run which supports the mentioned GPU, however, it fails with error
ERROR: Unable to load the kernel module 'nvidia.ko'

Attached you can find nvidia-installer.log
nvidia-installer.log (32.3 KB)

Thanks in advance!

Hey, running into a similar problem as many others.
Trying to get my Geforce RTX 3060 as the primary graphics card on Ubuntu 20.04 (on kernel 5.13) but all attempts to get nvidia-settings opened failed with:
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system

(nvidia-settings:4090): GLib-GObject-CRITICAL **: 13:38:30.606: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 13:38:30.610: PRIME: No offloading required. Abort
** Message: 13:38:30.610: PRIME: is it supported? no

I reinstalled everything and tried a lot of the additional settings in this post but won’t get closer.
Secure boot is disabled,
Blacklist is checked.

Attached you can find the output of the bug report. Help would be very much appreciated.
Cheers!

nvidia-bug-report.log.gz (92.7 KB)

Hi. I am experiencing a similar problem. I use Ubuntu 18.04 in a dual boot system. In Windows 10 the Nvidia drivers are working fine, but on Ubuntu it doesn’t work. nvidia-smi says: “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.” See attached nvidia-bug-report.log.gznvidia-bug-report.log.gz (138.5 KB)

Hi, I have similar problem as above. My conditions:

  • Package nvidia-prime is installed
  • nvidia profile already set
  • No blacklist-nvidia.conf file in modprobe.d directory.
  • No nvidia entry in /etc/modprobe.d/blacklist.conf
  • Secure boot disabled in BIOS.
  • Using newest nvidia driver 470.

Getting error when opening nvidia-settings: ERROR: NVIDIA driver is not loaded.
I enclosure nvidia log. Thanks if you would help me.
nvidia-bug-report.log (1.4 MB)

@marco.c.simoes
First you need to disable secure boot in BIOS.
You installed the driver with the .run file (it failed to compile though). Uninstall it using the --uninstall option.
Then re-install via Ubuntu Software and Updates.

@Rick29
Please try this:
Delete those Xorg configs you created:
/etc/X11/xorg.conf and /etc/X11/xorg.conf.d/nvidia.conf

Switch to intel, then back to nvidia with sudo prime-select. Then run sudo update-initramfs -c -k all. Reboot.

Hi same problems like Rick 29. My conditions:

  • Package nvidia-prime is installed
  • nvidia profile already set
  • No blacklist-nvidia.conf file in modprobe.d directory.
  • No nvidia entry in /etc/modprobe.d/blacklist.conf
  • Secure boot disabled in BIOS.
  • Using newest nvidia driver 470.

Getting error when opening nvidia-settings: ERROR: NVIDIA driver is not loaded.
I enclosure nvidia log. Thanks if you would help me. Nvidia log below:
nvidia-bug-report.log.gz (155.2 KB)

Hello! Ubuntu 20.04. Prime is present, blacklist is absent, initramfs was rebuild. Problem is not solve. Any other ideas?.. Thanks for help!

I have similar error here

I have problems with Nvidia drivers, on ubuntu 20.04

$lspci -v | grep VGA
0000:00:02.0 VGA compatible controller: Intel Corporation Device 9a60 (rev 01) (prog-if 00 [VGA controller])
0000:01:00.0 VGA compatible controller: NVIDIA Corporation Device 2520 (rev a1) (prog-if 00 [VGA controller])

$ sudo apt install nvidia-prime
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nvidia-prime is already the newest version (0.8.16~0.20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
$ sudo prime-select nvidia
Info: the nvidia profile is already set
$ nvidia-settings

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system


(nvidia-settings:21826): GLib-GObject-CRITICAL **: 16:17:28.054: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 16:17:28.056: PRIME: No offloading required. Abort
** Message: 16:17:28.056: PRIME: is it supported? no

$cat /etc/modprobe.d/nvidiafb-blacklist.conf 
blacklist nvidiafb
blacklist nouveau

nvidia-bug-report.log.gz (213.7 KB)

You’re running a 5.15 kernel that was built for ubuntu 21.10 which has a dependency on glibc 2.33 so no kernel module can be compiled. Please use another kernel.

Would anyone be willing to help me out on this?
I’m still looking for an answer, tried a lot of things found in different help threads.

Bests,
JN

The same applies to you, wrong kernel for your system, the driver does not compile. Either

If that doesn’t help, please open a new thread.

Hey,
thanks for the quick reply. Updated to 21.10 and reinstalled nvidia-driver-470. Still no success.
Nvidia X Server Settings still gives empty window and nvidia-settings still says driver is not loaded.

Please create a new nvidia-bug-report.log and post the output of
dkms status