How to Install Proprietary Drivers in Ubuntu?

Installing proprietary graphics drivers in Ubuntu is a straightforward process that can significantly boost your system’s gaming performance and hardware compatibility. This guide provides a quick overview of how to safely switch from the default open-source drivers to official proprietary ones from NVIDIA or AMD using both Ubuntu’s built-in graphical user interface and the command-line interface. By following these steps, you will ensure your graphics card runs efficiently with the correct, manufacturer-supported software.

The easiest and safest way to install proprietary drivers is through the native Additional Drivers utility. This method minimizes the risk of system conflicts.

Method 2: Using the Terminal (CLI)

If you prefer using the command line, or if you are managing a remote machine, you can install the recommended proprietary drivers with a few quick commands.

  1. Update your package list: Ensure your system’s package database is up to date.
sudo apt update
  1. Check available devices and drivers: Run the driver devices command to see your graphics hardware and the recommended proprietary drivers.
ubuntu-drivers devices
  1. Install the recommended driver automatically: The easiest way to proceed via CLI is to let Ubuntu automatically select and install the best proprietary driver for your hardware.
sudo ubuntu-drivers install
  1. Alternative - Install a specific driver: If you want a specific version shown in the device list, you can install it manually by name.
sudo apt install nvidia-driver-<version_number>
  1. Reboot: Reboot your system to finalize the installation.
sudo reboot

Verifying the Installation

After your computer restarts, you can confirm that the proprietary driver is active and running correctly.

For NVIDIA users, search for the NVIDIA X Server Settings application in your app menu, or open a terminal and type nvidia-smi. If the command displays your GPU details and driver version, your proprietary graphics driver is successfully installed and active. For AMD users, you can verify your active driver by running lspci -nnk | grep -iA3 vga in the terminal and checking the “kernel driver in use” line.