How to Install and Uninstall linux-headers-5.15.0-1042-nvidia Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: November 08,2024

1. Install "linux-headers-5.15.0-1042-nvidia" package

Please follow the guidelines below to install linux-headers-5.15.0-1042-nvidia on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install linux-headers-5.15.0-1042-nvidia

2. Uninstall "linux-headers-5.15.0-1042-nvidia" package

Please follow the guidance below to uninstall linux-headers-5.15.0-1042-nvidia on Ubuntu 22.04 LTS (Jammy Jellyfish):

$ sudo apt remove linux-headers-5.15.0-1042-nvidia $ sudo apt autoclean && sudo apt autoremove

3. Information about the linux-headers-5.15.0-1042-nvidia package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: linux-headers-5.15.0-1042-nvidia
Architecture: amd64
Version: 5.15.0-1042.42
Priority: optional
Section: devel
Source: linux-nvidia
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24397
Provides: linux-headers, linux-headers-3.0
Depends: linux-nvidia-headers-5.15.0-1042, libc6 (>= 2.34), libelf1 (>= 0.142), libssl3 (>= 3.0.0~~alpha1), zlib1g (>= 1:1.2.3.3)
Filename: pool/main/l/linux-nvidia/linux-headers-5.15.0-1042-nvidia_5.15.0-1042.42_amd64.deb
Size: 3425020
MD5sum: 49334c693a1596975024d040be4348bf
SHA1: 2e27a68a6ce2a16fa04af427662e1700d266982e
SHA256: 7b533f5649a5fb5920e40b0727213d1015b814877870a87e32deacc7ff3f0b43
SHA512: a9051fc5fd8a88fba850379f4d84cbc49c1fad52576564d0d85d693c384c1d873ac4fa7e70b05437ef8bdc62cff112352f183bef368d687523b43083db7d8404
Description: Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
Description-md5: bcb3fb61534ea732701d890d22c1dc68