- 更新当前系统
123apt updateapt upgrade -yapt dist-upgrade -y - 更新源
12sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*.listsed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*.sources - 升级新系统
123456apt updateapt upgrade -yapt dist-upgrade -yapt autoremove -yapt autocleanreboot - 验证系统版本
123456root@localhost:~# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 13 (trixie)Release: 13Codename: trixie
备注
- 建议备份好数据再执行升级
- 升级过程中自行选择是否保留旧的配置文件
- 软件版本/CA证书更新可以按 q 跳过查看