Debian 12 升级到 13 (trixie) 的记录
手上几台 bookworm 的机器陆续升到了 trixie,整体比较顺利,记录一下步骤和遇到的问题。
升级前
先把当前系统更新到最新,并确认没有被 hold 的包:
apt update && apt full-upgrade
apt-mark showhold
切换软件源
trixie 默认使用 deb822 格式的 /etc/apt/sources.list.d/debian.sources,旧的 sources.list 可以用 apt modernize-sources 转换。
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*.sources
apt update
apt upgrade --without-new-pkgs
apt full-upgrade
需要注意的地方
- 内核升级到 6.12,重启后检查一下网卡名是否变化。
/tmp默认改为 tmpfs,依赖/tmp存放大文件的脚本需要调整。- OpenSSH 不再支持 DSA 密钥。
最后 apt autoremove 清理一下旧包即可。