#备份原有的源配置文件
$ 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的全球镜像站:
本文提供了详细的步骤来更换Debian系统的软件源至国内镜像站点,包括备份原配置文件、删除旧源配置、添加新的国内源配置并更新软件包列表。
4390

被折叠的 条评论
为什么被折叠?



