In this post we will be looking at how to install nvidia drivers on Ubuntu OS. This tutorial is meant for those that have an Nvidia graphics cards on their Linux machine and its recommended you install latest nvidia drivers for your graphics card to addresses bugs, performance related issues and security fixes.
With the help of 3rd party proprietary GPU drivers PPA which provides stable proprietary Nvidia graphics driver updates, its now easier to install / update your nvidia card to the latest drivers without updating any other libraries hence providing stability. The PPA currently provides the latest updates for the following Nvidia Graphics Drivers versions as of 2017: nvidia-304, nvidia-381, nvidia-375, as well as nvidia-378.
Before we proceed with the installation, lets take a summary look at each latest Linux Display Drivers changelogs:
Nvidia Graphics Drivers 304.135
- Added support for X.Org xserver ABI 23 (xorg-server 1.19)
- Fixed a bug that allowed nvidia-installer to attempt loading kernel modules that were built against non-running kernels
- Add support for Linux 4.10
Nvidia Graphics Drivers 381.09
- Improved compatibility with recent kernels.
- Fixed a bug that caused “nvidia-settings –query all” to print many duplicate entries.
- Fixed a bug that caused applications to crash in some situations when calling glXMakeCurrent while OpenGL threaded optimizations were enabled
- Added support for the following GPUs: GeForce GTX 1080 Ti, Quadro M520, TITAN Xp, Quadro P3000
Nvidia Graphics Drivers 375.39
- Addressed a bug that caused system hangs when resuming from suspend with some GPUs.
- Fixed a regression that could cause corruption when hot-plugging displays.
- Fixed a regression that prevented systems with multiple DisplayPort monitors from resuming correctly from suspend.
Nvidia Graphics Drivers 378.13
- Disabled OpenGL threaded optimizations by default under Xinerama.
- Added support for the ARB_parallel_shader_compile extension to allow multi-threaded compilation of GLSL shaders.
- Updated the X driver to ignore any Virtual Reality Head Mounted Displays (HMDs)
- The driver will now advertise GLX FBConfigs with no depth bits on depth 30 X screens.
- Added support in nvidia-settings to view configured PRIME displays
- Added infrastructure which enables the NVIDIA EGL driver to load EGL external platform libraries that add client-side support for new window systems, beyond the existing libnvidia-egl-wayland.so.1.
- See release notes for more info
How to install Nvidia Drivers on Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04, Ubuntu 12.04
- Before we install nvidia drivers per each driver version, we need to remove any existing version with the following command
sudo apt-get purge nvidia*
- For Nvidia Graphics Drivers 304.135
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update && sudo apt-get install nvidia-304 nvidia-settings
- For Nvidia Graphics Drivers 381.09
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update && sudo apt-get install nvidia-381 nvidia-settings
- For Nvidia Graphics Drivers 375.39
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update && sudo apt-get install nvidia-375 nvidia-settings
- For Nvidia Graphics Drivers 378.13
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update && sudo apt-get install nvidia-378 nvidia-settings
After installation, reboot your machine.