#备份原有的源配置文件
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
文章来源:
网络小编D
版权声明:
本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站立刻删除。
