Debian 11 升级Linux内核

2024-12-20 12:35:39 0点赞 2收藏 0评论
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


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

展开 收起
0评论

当前文章无评论,是时候发表评论了
提示信息

取消
确认
评论举报

相关文章推荐

更多精彩文章
更多精彩文章
最新文章 热门文章
目录
2
扫一下,分享更方便,购买更轻松