查看Debian 版本

cat /etc/os-release

修改软件源

首先把服务器的软件源,从官方源换成清华源,之前刚更新的时候清华源还没有更新,修改源的路径为

/etc/apt/source.list

将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。

# 默认注释了源码镜像以提高 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

更新

添加为软件源地址后,进行如下命令

 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

检测内核版本

uname -r

升级完成

最后修改:2022 年 11 月 27 日
如果觉得我的文章对你有用,请随意赞赏