依次执行下面的程序
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 22223.继续运行
TERM=screen screen -x root/ -p 14.更换源为腾讯云
/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 contrib5.修改上面的https为http,运行下面的脚本
apt update
apt install ca-certificates6.证书安装完成后,修改http为https,再次运行
apt update
评论