How to Install and Uninstall linux-headers-5.4.0-42-generic Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 23,2024

1. Install "linux-headers-5.4.0-42-generic" package

Please follow the instructions below to install linux-headers-5.4.0-42-generic on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install linux-headers-5.4.0-42-generic

2. Uninstall "linux-headers-5.4.0-42-generic" package

Please follow the steps below to uninstall linux-headers-5.4.0-42-generic on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove linux-headers-5.4.0-42-generic $ sudo apt autoclean && sudo apt autoremove

3. Information about the linux-headers-5.4.0-42-generic package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: linux-headers-5.4.0-42-generic
Architecture: amd64
Version: 5.4.0-42.46~18.04.1
Priority: optional
Section: devel
Source: linux-hwe-5.4
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13409
Provides: linux-headers, linux-headers-3.0
Depends: linux-hwe-5.4-headers-5.4.0-42, libc6 (>= 2.14), libelf1 (>= 0.142), libssl1.1 (>= 1.1.0)
Filename: pool/main/l/linux-hwe-5.4/linux-headers-5.4.0-42-generic_5.4.0-42.46~18.04.1_amd64.deb
Size: 1273576
MD5sum: 12de3a452800b196fdfccc183e0ce9bc
SHA1: d605104f32409ca86f3cd85ab4cd253fb0325ed4
SHA256: c96870662d5527b5ee071ccb6a9214fbca47ed329920457504902a91b7ff7d68
SHA512: 3b782d2981bcf33fcf74326c1309980215eeb9e8a727ad8ee3010bf34b9a6b911a4f2cffc5831d34c2f083aa7f1424aa9b239b8f73c2dab637f7e6fb8313bf42
Description: Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
Description-md5: f03c686ef0b5ea23fa825fbe14c5edb5
Supported: 5y