需使用 ROOT
用户执行脚本
切换命令为 sudo -i
或 su root
。不同系统使用的命令不同,因为部分系统没有在初始安装时为 ROOT 账户设置密码(例如 Ubuntu)或系统默认禁止 ROOT 用户登录。
大陆换源:
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
或者
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
国外换源:
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
以上不行可试用以下方法:
1.安装 wget 和 ca-certificates
apt-get install -y wget && apt-get install -y ca-certificates
2.下载脚本
海外下载
wget https://raw.githubusercontent.com/oooldking/script/master/superupdate.sh
国内加速下载
wget https://ghproxy.com/https://raw.githubusercontent.com/oooldking/script/master/superupdate.sh
3.运行更换软件源
bash superupdate.sh
对于 Debian 系统还设置了四套其他的源,阿里云,CloudFront CDN,网易163,中科大的源,
请根据需要使用参数一键设置
bash superupdate.sh cn
bash superupdate.sh 163
bash superupdate.sh aliyun
bash superupdate.sh aws
如果配置的文件不满意,一键还原
bash superupdate.sh restore