admin avatar

debian 8平滑升级到debian 9

🕐 by admin





查看当前Debian版本

lsb_release -a

升级当前版本的软件

1
2
3
atp-get update
apt-get upgrade
apt-get dist-upgrade
upgrade和dist-upgrade的区别是后者可以不依赖某些库的更新 备份并替换 sources.list 源文件

cp /etc/apt/sources.list old.sources.list

sed -i 's/jessie/stretch/g' /etc/apt/sources.list

运行这个命令可以将sources.list里的”jessie”全部替换为”stretch”,

stretch是debian9的代号

再次运行更新升级

1
2
3
apt-get update
apt-get upgrade
apt-get dist-upgrade

重启系统,再次查看版本号 reboot

lsb_release -a





💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 1ms