之前购买了腾讯云的云服务器,搭建了这个网站,然后正巧Debian11发布了,然后改了软件源地址升级了系统,昨天查看系统统计的时候居然发现内核没有升级,还是4.19.11,索性今天周五,把这个内核给升级了
修改软件源
首先把服务器的软件源,从官方源换成清华源,之前刚更新的时候清华源还没有更新,修改源的路径为

/etc/apt/source.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

此处地址来自于
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
更新
添加为软件源地址后,进行如下命令

 sudo apt-get update && sudo apt-get dist-upgrade

然后使用以下命令进行内核安装
apt -t bullseye-backports install linux-image-amd64
apt -t bullseye-backports install linux-headers-amd64
reboot
也可以使用以下命令进行内核的搜索,精准安装

apt-cache search linux-image 

检测内核版本

uname -r

Q.E.D.