良心云轻量DD

依次执行下面的程序
1.下载

curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O ${_##*/} $_
2.安装

bash reinstall.sh debian 12 --password "YourPassword" --ssh-port 2222
3.继续运行

TERM=screen screen -x root/ -p 1
4.更换源为腾讯云
/etc/apt/sources.list
替换为:

Debian 12 "Bookworm" 腾讯云镜像源

deb https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib

安全更新

deb https://mirrors.tencent.com/debian-security/ bookworm-security main
deb-src https://mirrors.tencent.com/debian-security/ bookworm-security main

日常更新与后备源

deb https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
5.修改上面的https为http,运行下面的脚本

apt update
apt install ca-certificates
6.证书安装完成后,修改http为https,再次运行

apt update

评论已关闭