检查当前内核版本
uname -r
升级系统包
sudo apt update
查找最新的Debian12内核
sudo apt-cache search linux-image
升级内核
sudo apt install <linux_image_version>
比如:sudo apt install linux-image-6.5.0-0.deb12.4-amd6
验证安装
rambo@test1:~$ dpkg --list | grep linux-image
ii linux-image-6.1.0-10-amd64 6.1.38-2 amd64 Linux 6.1 for 64-bit PCs (signed)
ii linux-image-6.1.0-21-amd64 6.1.90-1 amd64 Linux 6.1 for 64-bit PCs (signed)
ii linux-image-6.5.0-0.deb12.4-amd64 6.5.10-1~bpo12+1 amd64 Linux 6.5 for 64-bit PCs (signed)
ii linux-image-amd64 6.1.90-1 amd64 Linux for 64-bit PCs (meta-package)
改变新内核
sudo grub-set-default 6.5.0-0.deb12.4-amd64
重启
sudo reboot
重新查看内核版本
rambo@test1:~$ uname -r
6.5.0-0.deb12.4-amd64
标签:amd64,image,sudo,升级,6.5,内核,6.1,linux,debian12
From: https://www.cnblogs.com/smlile-you-me/p/18245253