<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="Debian10系统手动升级内核">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2023-08-20 16:13<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
Debian10系统手动升级内核


安装新内核（必要）




XML/HTML代码


    apt-get update

    apt -t buster-backports -y install linux-image-amd64 linux-headers-amd64

    update-grub

    reboot




查看已安装的内核（非必要）




XML/HTML代码


    dpkg --list | grep linux-image




卸载旧内核（非必要）




XML/HTML代码


    apt -y purge linux-image-4.19.0-22-amd64 linux-headers-4.19.0-22-amd64

    apt -y  autoremove

    update-grub

    reboot




综合脚本（安装最新内核并卸载老内核）




XML/HTML代码


    apt-get update

    apt -t buster-backports -y install linux-image-amd64 linux-headers-amd64

    apt -y autoremove

    apt -y purge linux-image-4.19.0-22-amd64 linux-headers-4.19.0-22-amd64

    update-grub

    reboot




5.x内核已经集成BBR，可以直接开启




XML/HTML代码


    echo &quot;net.core.default_qdisc=fq&quot; &gt;&gt; /etc/sysctl.conf

    echo &quot;net.ipv4.tcpcongestioncontrol=bbr&quot; &gt;&gt; /etc/sysctl.conf

    sysctl -p




常用VPS工具




XML/HTML代码


    curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh &amp;&amp; chmod +x kejilion.sh &amp;&amp; ./kejilion.sh





BlueSkyXN 综合工具箱


Github：https://github.com/BlueSkyXN/SKY-BOX


使用方法:




XML/HTML代码


    #X86平台

    wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh &amp;&amp; chmod +x box.sh &amp;&amp; clear &amp;&amp; ./box.sh

    #ARM平台

    wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/armbox.sh &amp;&amp; chmod +x box.sh &amp;&amp; clear &amp;&amp; ./box.sh






Debian10中科大源




XML/HTML代码


    deb http://mirrors.ustc.edu.cn/debian/ buster main contrib non-free

    deb-src http://mirrors.ustc.edu.cn/debian/ buster main contrib non-free

     

    deb http://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free

    deb-src http://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free

     

    deb http://archive.debian.org/debian buster-backports main contrib non-free

     

    deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

    deb-src http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free







 Debian10使用apt更新或者安装软件会出现证书问题，可以用其他信任证书替换




XML/HTML代码


    wget http://iii80.com/sh/kernel/debian10/debian-archive-bullseye-automatic.gpg -P /etc/apt/trusted.gpg.d/




然后执行apt update就可以正常了。


全自动脚本：bash &lt;(curl -sL https://iii80.com/sh/kernel/debian10.sh)
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
