User-Profile-Image
hankin
  • 5
  • 关于
  • 分类
    • 路由器
    • 电脑相关
    • 游戏相关
    • 未分类
    • 服务器相关
    • 数据库
  • 页面
    • 关于
  • 友链
    • 华夏网盟
Help?

Please contact us on our email for need any support

Support
  • 关于
    首页   ›   服务器相关   ›   正文
服务器相关

Debian10升级内核到最新版

2023-04-21 19:50:00
143  0 0

添加软件源
1、方法1:
ssh中直接输入代码,其中buster代表Debian10版本。
echo -e "\ndeb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt-get update

国内服务器替换deb.debian.org为 mirrors.163.com或其他。

2、方法2:
编辑 “/etc/apt/source.list”

最下方添加一行deb http://deb.debian.org/debian buster-backports main
记得 apt-get update

三、升级内核
使用root账户ssh输入以下命令
apt install -t buster-backports linux-image-cloud-amd64 linux-headers-cloud-amd64

执行后会升级内核到最新5.10 cloud版。内存占用较低。物理机请去除cloud,带cloud仅适用于虚拟化设备VPS等。

查看当前系统所有内核

dpkg -l|grep linux-image | awk '{print $2}'

卸载其余内核

apt-get purge 名称 -y
例:apt-get purge linux-image-4.19.1-amd64 -y
下方还会有个linux-headers-amd64可以一起卸载,对应名称。

更新 grub 系统引导文件并重启VPS

update-grub
reboot

完事。

安装完如果无法启动卡在启动页面,开机的时候更换为旧内核启动。卸载新内核然后update-grub,寻找其他适用内核。

评论 (0)

Click here to cancel reply.

欢迎您 游客  

近期文章

  • 用于网速测试的下载测速文件合集
  • docker构建SB镜像
  • pterodactl docker install
  • OpenWRT流量实时监控插件
  • docker部署dify

近期评论

No comments to show.

归档

  • 1 月 2026
  • 8 月 2025
  • 5 月 2025
  • 4 月 2025
  • 3 月 2025
  • 2 月 2025
  • 12 月 2024
  • 4 月 2024
  • 10 月 2023
  • 8 月 2023
  • 4 月 2023
  • 3 月 2023
  • 2 月 2023
  • 10 月 2021
  • 5 月 2021
  • 3 月 2021
  • 2 月 2021

分类

  • 数据库
  • 服务器相关
  • 未分类
  • 游戏相关
  • 电脑相关
  • 路由器
Copyright © 2026
smarty_hankin 主题. Designed by hankin
主页
页面
  • 关于
博主
hkthomas 管理员
136 文章 0 评论 18314 浏览
测试
测试