从debian11升级到debian12
apt update
apt upgrade
apt full-upgrade
apt --purge autoremove
apt-mark showhold | more
apt-mark unhold <pkg-name>
cp -v /etc/apt/sources.list /opt/sources.list-bakup-debian11
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
#debian10 buster
#sed -i 's/buster/bullseye/g' /etc/apt/sources.list
apt update
apt full-upgrade
apt --purge autoremove
cat /etc/issue
cat /etc/os-release
cat /etc/debian_version
#尝试重启看是否正常!
reboot
参考资料 https://zhuanlan.zhihu.com/p/646765535