Debian10升级系统内核,其他版本没试过

查看内核:uname -r

更新系统

执行系统更新操作:

apt update && apt full-upgrade -y
apt install lsb-release

更新系统的 apt 源

执行下面的操作来使用 AWS Debian:

cat > /etc/apt/sources.list << EOF
deb http://cdn-aws.deb.debian.org/debian $(lsb_release -sc) main contrib non-free
deb http://cdn-aws.deb.debian.org/debian-security $(lsb_release -sc)/updates main contrib non-free
deb http://cdn-aws.deb.debian.org/debian $(lsb_release -sc)-updates main contrib non-free
deb http://cdn-aws.deb.debian.org/debian $(lsb_release -sc)-backports main contrib non-free
deb http://cdn-aws.deb.debian.org/debian $(lsb_release -sc)-proposed-updates main contrib non-free
# deb http://cdn-aws.deb.debian.org/debian $(lsb_release -sc)-backports-sloppy main contrib non-free
EOF

更新 apt 的本地包信息:

apt update

安装新版内核

apt search linux-image
apt install -t $(lsb_release -sc)-backports linux-image-$(dpkg --print-architecture) linux-headers-$(dpkg --print-architecture) --install-recommends -y
update-grub
reboot

清理工作

获取已经不需要的旧版内核

dpkg -l | grep linux

linux-image-4.19.0-17-amd64 为例,删除:

apt purge linux-image-4.19.0-17-amd64

文章来源

最后修改:2021 年 06 月 26 日 09 : 45 PM