How to Install and Uninstall linux-modules-nvidia-390-5.4.0-126-generic Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 15,2024

1. Install "linux-modules-nvidia-390-5.4.0-126-generic" package

This tutorial shows how to install linux-modules-nvidia-390-5.4.0-126-generic on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install linux-modules-nvidia-390-5.4.0-126-generic

2. Uninstall "linux-modules-nvidia-390-5.4.0-126-generic" package

Please follow the guidance below to uninstall linux-modules-nvidia-390-5.4.0-126-generic on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove linux-modules-nvidia-390-5.4.0-126-generic $ sudo apt autoclean && sudo apt autoremove

3. Information about the linux-modules-nvidia-390-5.4.0-126-generic package on Ubuntu 20.04 LTS (Focal Fossa)

Package: linux-modules-nvidia-390-5.4.0-126-generic
Architecture: amd64
Version: 5.4.0-126.142
Priority: optional
Section: restricted/kernel
Source: linux-restricted-modules
Origin: Ubuntu
Maintainer: Canonical Kernel Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 33
Depends: debconf (>= 0.5) | debconf-2.0, linux-image-5.4.0-126-generic | linux-image-unsigned-5.4.0-126-generic, linux-signatures-nvidia-5.4.0-126-generic (= 5.4.0-126.142), linux-objects-nvidia-390-5.4.0-126-generic (= 5.4.0-126.142), nvidia-kernel-common-390 (<= 390.154-1), nvidia-kernel-common-390 (>= 390.154)
Filename: pool/restricted/l/linux-restricted-modules/linux-modules-nvidia-390-5.4.0-126-generic_5.4.0-126.142_amd64.deb
Size: 7140
MD5sum: 2d8421a4e8c231ed37f86ff795807256
SHA1: 593669313d610c6bdce4eff6098b76516a771763
SHA256: 085d81831746da344016337b3c8087b691e02949af0a0ea9c48491264325f9d4
SHA512: 6b4757fc2f2820d783e62bf63924cdc87cbfeb19d5ffef230b20259ee66f089e5f5d5916fcf0cdcddcfddd97e8f46911ef869b3a1c9f39f5fdad7d038c7d0840
Description: Linux kernel nvidia modules for version 5.4.0-126
Description-md5: 84a5d30dd22f562d45c9b8a1f18352ee