Nvidia Driver won't install on Ubuntu 20.04

7,954

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.

Share:
7,954
Morlino
Author by

Morlino

Updated on September 18, 2022

Comments

  • Morlino
    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
      singrium almost 4 years
      Did 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
      Morlino almost 4 years
      prime-select query says it's nvidia, but nothing works
    • singrium
      singrium almost 4 years
      May removing the installed Nvidia driver and reinstall it again using sudo ubuntu-drivers autoinstall would work.. This might be helpful
    • starkus
      starkus almost 4 years
      What does sudo update-alternatives --config glx tell you? Is Nvidia set as default?
    • Morlino
      Morlino almost 4 years
      update-alternatives: error: no alternatives for glx
    • Chaim Eliyah
      Chaim Eliyah over 3 years
      if @karel solved your problem, you should mark that as the answer. in my case this has nothing to do with secure boot.
  • Morlino
    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
    Em Vo almost 4 years
    Yes, I have to reinstall my OS.