前提
不支持 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
@songshi #3
等他正式版出来再看看,要是也这样就停留在11了
看介绍,12还是挺值得更新的!!!
@Wyatt仲 #4
能用就行😂
第二步报错了
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list
zsh报错提示没有这个目录,但是不影响升级。
就是有点奇怪,改完源文件之后再upgrade,没有任何安装包更新,重启之后升级成功了。
@yanling #7
可能你没用第三方软件自己的源,如docker或tailscale的吧
虚拟机先尝鲜,除了版本号的变更还太大区别。留待再观察。
绑定