Logo

Debian 12 bookworm升级13 trixie

September 10, 2025

emm第一次见到这么简单的跨版本升级

先把所有软件包升级到当前最新版

apt update
apt upgrade -y
apt full-upgrade -y
apt autoclean
apt autoremove -y

然后把apt源里的bookworm换成trixie

sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*.list
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*.sources

再升级一次

apt update
apt upgrade -y
apt full-upgrade -y

自动删除不需要的

apt autoclean
apt autoremove -y

最后reboot重启就好

root@debian ~ $ cat /etc/debian_version 
13.0
root@debian ~ $ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 13 (trixie)
Release:	13
Codename:	trixie
root@debian ~ $ uname -a
Linux upload 6.12.38+deb13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.38-1 (2025-07-16) x86_64 GNU/Linux

comment

留言 / 评论

如果暂时没有看到评论,请点击下方按钮重新加载。