Last Updated on May 20, 2018
In this tutorial, we are going to install the latest Nvidia drivers in Ubuntu Linux 18.04 Bionic Beaver.
Install Drivers Using the apt install
This is the simplest of all and the recommended way that you should go about installing the Nvidia drivers on your Ubuntu device.
You first, need to update your local repositories and then install drivers using the apt install command.
sudo apt update && sudo apt upgrade
After the update is complete, use the ubuntu-drivers
command to see what drivers you have.
ubuntu-drivers devices
The result of this command will be something as follows:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00000FFBsv00001462sd000010DBbc03sc00i00 model : GK107GLM [Quadro K2000M] vendor : NVIDIA Corporation driver : nvidia-331-updates - distro non-free driver : nvidia-304 - distro non-free driver : nvidia-304-updates - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin == cpu-microcode.py == driver : intel-microcode - distro free
Here, you will get the model and the drivers that your Ubuntu 18.04 PC needs to have.
Based on this output, you can see the GPU model GK107GLM on the graphics card Quadro K2000M. The driver you thus need to install is nvidia-331
.
You can automatically install the recommended driver using the following command.
sudo ubuntu-drivers autoinstall // or sudo apt install nvidia-331
The driver version will most probably be different than 331 if you are reading this post in the future. Use the latest one for the most support.
Once the installation is complete, restart your Ubuntu 18.04 Bionic Beaver Linux PC/laptop. The drivers will work correctly.