备份原有的源配置文件
cp /etc/apt/sources.list /etc/apt/sources.listbak
删除该源配置文件
rm -f /etc/apt/sources.list
生成国内的源配置文件
echo "deb http://ftp.cn.debian.org/debian/ stretch main" > /etc/apt/sources.list
echo "deb http://ftp.cn.debian.org/debian/ stretch-updates main" >> /etc/apt/sources.list
echo "deb http://ftp.cn.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list
更新源
apt-get update
debian的全球镜像站:
https://www.debian.org/mirror/list
最后更新: 2021-03-28 10:11
文章链接: https://995566.xyz/82021307.html
创作共享: 「署名 4.0 国际」许可协议进行许可~>_<