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

Last updated: November 24,2024

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

This guide covers the steps necessary to install linux-modules-nvidia-510-5.4.0-120-generic on Ubuntu 20.04 LTS (Focal Fossa)

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

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

In this section, we are going to explain the necessary steps to uninstall linux-modules-nvidia-510-5.4.0-120-generic on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: linux-modules-nvidia-510-5.4.0-120-generic
Architecture: amd64
Version: 5.4.0-120.136
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-120-generic | linux-image-unsigned-5.4.0-120-generic, linux-signatures-nvidia-5.4.0-120-generic (= 5.4.0-120.136), linux-objects-nvidia-510-5.4.0-120-generic (= 5.4.0-120.136), nvidia-kernel-common-510 (<= 510.73.05-1), nvidia-kernel-common-510 (>= 510.73.05)
Filename: pool/restricted/l/linux-restricted-modules/linux-modules-nvidia-510-5.4.0-120-generic_5.4.0-120.136_amd64.deb
Size: 7132
MD5sum: 8d339da4e6af17a8d4cca6e530c52452
SHA1: d35c5102c555904899344553c311b7d3ac0c82a2
SHA256: 9470fc521a449e12506b118e971dca709400c654208e08a840d4f1f34403b308
SHA512: fe592c379844a277a4b6bc8c822196d00f458f0cdec9f176510762e40ec777d82abed02a19405b2908f393ac034924c4725eb5e3dadf13b5c4c1984b0325c25d
Description: Linux kernel nvidia modules for version 5.4.0-120
Description-md5: 6323719390ac398e5d50e8c38a193148