前提
不支持 LXC 哈
最好快照一下
推荐从11版本升
老系统更新
apt update
apt upgrade -y
apt dist-upgrade -y
apt autoclean
apt autoremove -y
操作
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
# 这个需谨慎,可能有些第三方软件还不支持。docker和tailscale目前是支出的
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list
# 12版本变更比较大的,支持分发非自由固件如xx驱动等
sed -i 's/non-free/non-free non-free-firmware/g' /etc/apt/sources.list
新系统更新
apt update
apt upgrade -y
apt dist-upgrade -y
reboot
apt autoclean
apt autoremove -y
这样就升级完成了。
总体问题不大,按照我的体验,目前我司测试服务器,5月初就升级了很稳😂

为什么就我升级完,python提示externally managed environment
Debian 12 RC 中還有 100 個已知的 bug
https://lists.debian.org/debian-devel-announce/2023/06/msg00000.html
(Note: the release process typically takes the whole day and the
release isn't done until the early hours of Sunday UTC.)
因爲時區,明天會正式推出 bookworm
https://lists.debian.org/debian-devel-announce/2023/04/msg00007.html
@Wyatt仲 #1
python venv环境,没遇到,主要是我现在不用python,即使用也是基于docker的
@Testcharon #2
我觉得目前日常使用问题不大,我司测试环境差不多50多台物理机都升级了,暂时没问题,但是出于考虑,服务的基础镜像还是debian:11