Disabling Kernel Updates in Ubuntu/Debian

From Notes_Wiki

Home > Ubuntu > Disabling Kernel Updates in Ubuntu/Debian

Disabling Kernel Updates in Ubuntu/Debian

1. Check Current Kernel

uname -r

2. List Installed Kernels

dpkg --list | grep linux-image

3. Hold the Current Kernel

sudo apt-mark hold linux-image-generic linux-headers-generic linux-modules-extra-$(uname -r)

4. Verify the Hold

apt-mark showhold

Example Output:

linux-image-generic
linux-headers-generic
linux-modules-extra-6.8.0-71-generic

5. To Re-enable Kernel Updates

sudo apt-mark unhold linux-image-generic linux-headers-generic linux-modules-extra-$(uname -r)


Home > Ubuntu > Disabling Kernel Updates in Ubuntu/Debian