什么值得买App下载 App ›
连续签到专享现金活动

Debian 11 升级Linux内核

24-12-20
Debian 11 升级Linux内核

摘要

没什么说的,就是单纯的升级Linux内核,具体操作请看下文。

正文

查看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


作者声明本文无利益相关,欢迎值友理性交流,和谐讨论~

评论

评论区空态插画

当前文章无评论,是时候发表评论了