Nvidia Driver won't install on Ubuntu 20.04
You have the correct Nvidia 440 proprietary graphics packages from the default Ubuntu 20.04 repositories installed, but the integrated Intel graphics processor is being used instead of Nvidia graphics. Disable Secure Boot in BIOS/UEFI.
Morlino
Updated on September 18, 2022Comments
-
Morlino over 1 year
Installed driver with this command:
$ sudo apt install nvidia-driver-440
but when i want to check Nvidia driver, I'm getting this error:
$ 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
If I look at Nvidia-settings, the window will show up, but all i can see is: Select GPU you would like to use and 3 options below, and nothing else. Here's the output:
$ nvidia-settings ERROR: NVIDIA driver is not loaded ERROR: Unable to load info from any available system (nvidia-settings:7221): GLib-GObject-CRITICAL **: 16:08:55.807: g_object_unref: assertion 'G_IS_OBJECT (object)' failed ** Message: 16:08:55.810: PRIME: Requires offloading ** Message: 16:08:55.810: PRIME: is it supported? yes ** Message: 16:08:55.837: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query ** Message: 16:08:55.837: PRIME: on-demand mode: "1" ** Message: 16:08:55.837: PRIME: is "on-demand" mode supported? yes
in Software & Updates > Additional Drivers, I chose: Using NVIDIA driver metapackage from nvidia-driver-440 (proprietary, tested)
In Settings > About, Graphics: displays integrated Intel, instead of Nvidia 1050TI
Did everything as in This comment, :
$ prime-select query nvidia
It says nvidia, but still nothing's working
FIXED: I managed to fix it by disabling secure boot in BIOS
-
singrium almost 4 yearsDid you reboot your PC after installing the drivers? If not, reboot then run
prime-select query
to check which GPU your PC is using. -
Morlino almost 4 yearsprime-select query says it's nvidia, but nothing works
-
singrium almost 4 yearsMay removing the installed Nvidia driver and reinstall it again using
sudo ubuntu-drivers autoinstall
would work.. This might be helpful -
starkus almost 4 yearsWhat does
sudo update-alternatives --config glx
tell you? Is Nvidia set as default? -
Morlino almost 4 years
update-alternatives: error: no alternatives for glx
-
Chaim Eliyah over 3 yearsif @karel solved your problem, you should mark that as the answer. in my case this has nothing to do with secure boot.
-
-
Morlino almost 4 years'Solution was fresh new install' whad do yo mean by that? Do I have to reinstall OS? And I used sudo
apt install ubuntu-restricted-extras
but it didn't help -
Em Vo almost 4 yearsYes, I have to reinstall my OS.