1.先用萌咖的DD脚本升级到Debian9
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 9 -v 64 -p "Aa123456" -port "22" -a
2.Debian9升级Debian10
apt-get update && apt-get upgrade -y
sed -i 's/stretch/buster/g' /etc/apt/sources.list
apt-get update && apt-get upgrade -y
选择YES回车(默认是NO),输入N回车(也可以选择Y,默认就是N,直接回车也行,输入错误的时候按Ctrl+删除键可以删除输入错误的字符,具体含义可自行翻译)
apt-get dist-upgrade -y
选择keep…回车(默认就是keep…,直接回车就行,第二行)
reboot(如果没反应,使用reboot -f强制重启)
apt-get autoremove -y(卸载无效包,删除了一个tcpd)
3.Debian10升级Debian11
reboot(首先重启)
apt update && apt -y upgrade && apt -y dist-upgrade; \
sed -i 's?buster/updates?bullseye-security?' /etc/apt/sources.list && sed -i 's/buster/bullseye/g' /etc/apt/sources.list; \
apt update && apt -y upgrade && apt -y dist-upgrade
选择keep…回车(默认就是keep…,直接回车就行,第二行
reboot(重启)
apt-get autoremove -y(卸载无效包,删除的比较多,量力而行)
reboot(重启)
温馨提醒:某些使用小内存的vps修改脚本还是需要手动操作,而且有些低内存的机也不支持debian10,某些384/512内存的机子可以debian10,最妥善的处理方法,还是先Debian9。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容