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

Last updated: November 14,2024

1. Install "linux-modules-nvidia-510-5.4.0-122-generic" package

This is a short guide on how to install linux-modules-nvidia-510-5.4.0-122-generic on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install linux-modules-nvidia-510-5.4.0-122-generic

2. Uninstall "linux-modules-nvidia-510-5.4.0-122-generic" package

Please follow the step by step instructions below to uninstall linux-modules-nvidia-510-5.4.0-122-generic on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove linux-modules-nvidia-510-5.4.0-122-generic $ sudo apt autoclean && sudo apt autoremove

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

Package: linux-modules-nvidia-510-5.4.0-122-generic
Architecture: amd64
Version: 5.4.0-122.138+2
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-122-generic | linux-image-unsigned-5.4.0-122-generic, linux-signatures-nvidia-5.4.0-122-generic (= 5.4.0-122.138+2), linux-objects-nvidia-510-5.4.0-122-generic (= 5.4.0-122.138+2), nvidia-kernel-common-510 (<= 510.85.02-1), nvidia-kernel-common-510 (>= 510.85.02)
Filename: pool/restricted/l/linux-restricted-modules/linux-modules-nvidia-510-5.4.0-122-generic_5.4.0-122.138+2_amd64.deb
Size: 7132
MD5sum: 4bf9d906ed8837d85bfbcd81bcdf5ea4
SHA1: b75d575919533c802c104cdf2aae8f9bfcc9f26c
SHA256: 70eca933874f35e1e090d97df61a0834aa83690a4aa3b9268df2d0130d9c40c1
SHA512: a6da18ace09a49c685e51f437000dcbae360e3bddf54963a86e18079a1ec0fe94e8e6bfe7d088d8b19ee5d5b9291e13712fc37cd25cac3f3411322dfeabfa25a
Description: Linux kernel nvidia modules for version 5.4.0-122
Description-md5: b42775a06bf2afb59a08996c6e025361