Ubuntu & Nvidia drivers

Options

  • GUI
    • Software & Updates
  • CLI
    • removing drivers
    • install certain driver from Ubuntu repo
    • install with ubuntu-drivers
    • install from POP!_OS repo
    • nouveau driver [WIP]

Install with Software & Updates app

Open Software & Updates app -> Additional Drivers tab -> check desired driver -> Apply changes

Removing drivers

sudo apt-get remove --purge '^nvidia-.*'

Install from Ubuntu repo

Search for possible drivers:

apt-cache search nvidia-driver-*

Install:

apt-get install nvidia-driver-510

From ubuntu-drivers

sudo ubuntu-drivers autoinstall

Install from POP!_OS repo

If you are running Ubuntu 19.10 or later – add the Apt Preferences File:

sudo nano /etc/apt/preferences.d/system76-apt-preferences

Add the following six lines (seven if you count the space in the middle):

Package: *
Pin: release o=LP-PPA-system76-dev-stable
Pin-Priority: 1001

Package: *
Pin: release o=LP-PPA-system76-dev-pre-stable
Pin-Priority: 1001

Save the file. Now you should be able to install the System76 Driver as described below.

Installing the Driver
To install our Driver you need to run the following commands in the Terminal:

sudo apt-add-repository -y ppa:system76-dev/stable
sudo apt-get update
sudo apt install system76-driver-nvidia

nouveau driver [WIP]