every blog every motto: You can do more than you think.
https://blog.csdn.net/weixin_39190382?type=blog
0. Preface
Ubuntu 22.04 installs the specified kernel
1. Text
View installed kernel images
dpkg --get-selections | grep linux-image
1.1 Install the specified version of the kernel
- install mirror
sudo apt-get install linux-image-5.4.0-99-generic
- Install kernel headers
sudo apt-get install linux-headers-5.4.0-99-generic
- Install kernel modules
sudo apt-get install linux-modules-5.4.0-99-generic
- install driver
sudo apt-get install linux-modules-extra-5.4.0-99-generic
Bug fixes:
sudo apt --fix-broken install
Check if the installation is successful
dpkg -l | grep 5.4.0-99-generic
Modify the configuration after the installation is complete
sudo vim /etc/default/grub
Find GRUB_DEFAULT=0 and modify it to:
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu,with Linux 5.4.0-99-generic"
After saving and exiting:
sudo update-grub
Reboot after the update is complete
sudo reboot
Check if the installation is successful
uname -r