Disable ubuntu kernel auto update

Software & updates

Check current kernel (5.15.0-37)

1
uname -a

Show all kernel

1
dpkg -l | grep linux

Hold specific version kernel (5.15.0-37)

1
2
3
4
5
sudo apt-mark hold linux-headers-5.15.0-37 \
linux-headers-5.15.0-37-generic \
linux-image-5.15.0-37-generic \
linux-modules-5.15.0-37-generic \
linux-modules-extra-5.15.0-37-generic

Check kernel hold

1
dpkg --get-selections | grep hold

Ref : Ubuntu 禁止内核更新