Debian 9 Stretch 安全升级到 Debian 10 Buster

1,178次阅读
没有评论

升级当前系统软件,保持Debian9最新版本:

apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

先备份一下,再将/etc/apt/sources.list里所有“stretch”替换为“buster”:

cp /etc/apt/sources.list /etc/apt/sources.list.orig
sed -i 's/stretch/buster/g' /etc/apt/sources.list
sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/*

再更新升级一遍当前系统:

apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

最后重启机器:

reboot

检查当前系统版本:

lsb_release -a

清理老版本软件:

apt-get autoremove
正文完
 
评论(没有评论)