发现很多vps商家没有debian10,只有debian9,网上找了一些资料,自己升级但每次要一行行黏贴命令嫌弃麻烦,所以写了个小脚本

代码如下:

#!/bin/sh
apt update
apt upgrade -y
sed -i 's/stretch/buster/g' /etc/apt/sources.list
apt update
apt upgrade -y
apt dist-upgrade
apt autoremove
apt clean
reboot

其实脚本就是改源,我只是综合一下

最后修改:2020 年 04 月 30 日
如果觉得我的文章对你有用,请随意赞赏