替换前先更新下证书,否则可能由于证书不可用导致 https 无法使用,进而无法下载所有软件 sudo apt install apt-transport-https ca-certificates 首先替换通用软件源, Debian 的软件源配置文件是 /etc/apt/sources.list 备份后输入以下命令直接填充 curl -fsSL https://mirrors.ustc.edu.cn/repogen/conf/debian-https-4-bookworm -o /etc/apt/sources.l…