How To Install linux-modules-nvidia-390-generic on Ubuntu 20.04

In this tutorial we learn how to install linux-modules-nvidia-390-generic on Ubuntu 20.04. linux-modules-nvidia-390-generic is Extra drivers for nvidia-390 for the generic flavour Extra drivers for nvidia-390 for the generic flavour

Introduction

In this tutorial we learn how to install linux-modules-nvidia-390-generic on Ubuntu 20.04.

What is linux-modules-nvidia-390-generic

linux-modules-nvidia-390-generic is:

Install extra signed nvidia-390 modules compatible with the generic flavour.

Package: linux-modules-nvidia-390-generic Architecture: amd64 Version: 5.4.0-26.30+2 Priority: optional Section: restricted/kernel Source: linux-restricted-modules Origin: Ubuntu Maintainer: Canonical Kernel Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 21 Provides: nvidia-dkms-390 (= 390.132-0ubuntu2) Depends: linux-modules-nvidia-390-5.4.0-26-generic (= 5.4.0-26.30+2) Filename: pool/restricted/l/linux-restricted-modules/linux-modules-nvidia-390-generic_5.4.0-26.30+2_amd64.deb Size: 5436 MD5sum: 788f21bfa8f133a43d3469863b37c45d SHA1: a8e89eae212eaf26862385f8cd3d3b4f48df2d9e SHA256: 872e80d4002df99b262bcd03f0a0bab35ceec407892ace54d9354d3068e8c2e1 Description-en: Extra drivers for nvidia-390 for the generic flavour Install extra signed nvidia-390 modules compatible with the generic flavour.

There are three methods to install linux-modules-nvidia-390-generic on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install linux-modules-nvidia-390-generic Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install linux-modules-nvidia-390-generic using apt-get by running the following command:

sudo apt-get -y install linux-modules-nvidia-390-generic

Install linux-modules-nvidia-390-generic Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install linux-modules-nvidia-390-generic using apt by running the following command:

sudo apt -y install linux-modules-nvidia-390-generic

Install linux-modules-nvidia-390-generic Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install linux-modules-nvidia-390-generic using aptitude by running the following command:

sudo aptitude -y install linux-modules-nvidia-390-generic

How To Uninstall linux-modules-nvidia-390-generic on Ubuntu 20.04

To uninstall only the linux-modules-nvidia-390-generic package we can use the following command:

sudo apt-get remove linux-modules-nvidia-390-generic

Uninstall linux-modules-nvidia-390-generic And Its Dependencies

To uninstall linux-modules-nvidia-390-generic and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove linux-modules-nvidia-390-generic

Remove linux-modules-nvidia-390-generic Configurations and Data

To remove linux-modules-nvidia-390-generic configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge linux-modules-nvidia-390-generic

Remove linux-modules-nvidia-390-generic configuration, data, and all of its dependencies

We can use the following command to remove linux-modules-nvidia-390-generic configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge linux-modules-nvidia-390-generic

References

Summary

In this tutorial we learn how to install linux-modules-nvidia-390-generic package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.