当前Ubuntu版本
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Linux version 5.19.0-50-generic
参考ubuntu论坛的答案1 成功降级Linux内核到 5.13.12-051312-generic
下载安装内核
需要root权限
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
# 查找支持的内核
ubuntu-mainline-kernel.sh -r | grep 5.13
# 安装指定版本内核
ubuntu-mainline-kernel.sh -i v5.13.12
# 查看grub支持的内核
grep 'menuentry \|submenu ' /boot/grub/grub.cfg | cut -f2 -d "'"
修改启动默认内核
# 修改默认启动选项
vi /etc/default/grub
#将
GRUB_DEFAULT=0
#替换为
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.13.19-051319-generic"
# 刷新 grub
update-grub
# 重启
reboot now
# 确认当前内核版本号
uname -r