For those who seek help in different areas of software and hardware platform.

How To Install Latest NVIDIA Graphics Driver on Ubuntu 18/19/20

This tutorial will help you to install latest Nvidia Graphics driver on your Ubuntu 18.04, 19.04, Ubuntu 19.10 and Ubuntu 20.04 machine. You will need to disable "Secure Boot" from the BIOS of your hardware (if exists) unless correctly configured before performing the following steps or the Nvidia driver installation will fail.

Identify the Graphic Adapter

You can identify which graphic adapter is installed in your laptop, desktop or server machine using the following command:

sudo lspci

As you can see in the below screenshot that we have a laptop with dual graphics adapter, one is Intel and other is Nvidia GeForce GTX 950M.

After fresh installation of Ubuntu, we found that (VGA) Intel Integrated Graphics Controller is taken into account and Nvidia GeForce GTX 950M driver is not yet installed.

So, we need to install NVIDIA graphic driver on our Ubuntu 18.04 machine to make it functional.

Uninstalling Nouveau Driver

Remove generic nouveau driver from your Ubuntu using the following command and reboot:

sudo apt autoremove xserver-xorg-video-nouveau
sudo reboot

Adding Nvidia Repository

You can check the correct driver version for your graphic card from here. Afterwards, visit the graphic driver PPA homepage here and see if your graphic card is compatible with the drivers present in the repository.

sudo add-apt-repository ppa:graphics-drivers
sudo apt update

Installing Nvidia Drivers

First, you need to search for the latest available release of NVIDIA Graphics Driver:

sudo apt search *nvidia*

This will bring you all of the NVIDIA related packages but you will only need to locate and install the latest available packages on your Ubuntu like below:

sudo apt install xserver-xorg-video-nvidia-430 nvidia-utils-430 nvidia-kernel-source-430 nvidia-driver-430 nvidia-dkms-430

When installation finished, reboot your Ubuntu machine:

sudo reboot

Verifying NVIDIA Driver:

Once your Ubuntu machine reboot completed, type the following command:

sudo nvidia-smi

You will see the output similar to the following, confirms that your NVIDIA Graphics Driver installation was successful

Type the following command to open up Nvidia X Server Settings Window

sudo nvidia-settings

and you will see the following NVIDIA X Server Settings which means your NVIDIA graphics adapter is working fine and running with the latest NVIDIA Driver Version 430.40

Now Navigate to Ubuntu Settings > Devices > About and you will see your NVIDIA Graphics adapter is taken into account.

Wrapping up

Congrats! You now have successfully installed latest NVIDIA graphic driver on your Ubuntu 18.04 machine.


  1. This does not work for me, the latest driver looks like installed correctly but the settings are showing like a blank window with only 'quit' option

    1. Please post sudo lspci and yum list *nvidia* output here.

  2. AnonymousJuly 20, 2020

    Thank you very much for that!!!!!!!! :--D After one week!!!, i finally got the driver installed in my ubuntu 20.04 system. I wasn't disabling the nouveau driver, and the sudo commands above did the trick!


Comments with links will not be published.

Video Tutorials