Uninstall and Install Nvidia Drivers on Ubuntu 20.04

Imran Bangash
2 min readNov 8, 2023

NVIDIA Drivers Installation Guide for Ubuntu 20.04 LTS

Welcome to the NVIDIA Drivers Installation Guide for Ubuntu 20.04 LTS (Focal Fossa). This manual provides step-by-step instructions for installing the official NVIDIA drivers necessary to fully utilize the graphical capabilities of NVIDIA GPUs on your Ubuntu system.

Follow the subsequent sections carefully to remove any pre-existing NVIDIA drivers, disable the open-source Nouveau driver, and install the proprietary NVIDIA drivers. At the end of this guide, we will also cover how to verify the installation to ensure your NVIDIA drivers are correctly set up.

Step 1: Remove Old NVIDIA Drivers

First, you need to remove any existing NVIDIA drivers from your system.

`sudo apt-get remove — purge ‘^nvidia-.*`

Step 2: Install the Ubuntu Desktop Package

Reinstall the ubuntu-desktop package to ensure that all dependencies are satisfied.

sudo apt-get install ubuntu-desktop

Step 3: Remove Unnecessary Packages

Clean up any unused packages that were previously installed.

`sudo apt autoremove`

Step 4: Prevent Nouveau Drivers from Loading

--

--

Imran Bangash

Imran is a computer vision and AI enthusiast with a PhD in computer vision. Imran loves to share his experience with self-improvement and technology.