- 查看系统安装的内核有哪些
dpkg --get-selections | grep linux-image
- 查看系统正在使用的内核
uname -a
- 将系统正在使用的内核设置为禁止自动更新
sudo apt-mark hold linux-image-4.15.0-96-generic
sudo apt-mark hold linux-modules-extra-4.15.0-96-generic
- 取消设置
sudo apt-mark unhold linux-image-4.15.0-96-generic
sudo apt-mark unhold linux-modules-extra-4.15.0-96-generic
参考:https://www.codenong.com/cs105454293/