Debian 镜像使用帮助

此处的帮助文档已经废弃,新的内容请访问 https://mirrors.ustc.edu.cn/help/


收录架构

  • 作为官方源之一,与 Debian 上游保持相同

收录版本

  • 与 Debian 上游保持相同

使用说明

操作前请做好相应备份

一般情况下,更改 /etc/apt/sources.list 文件中 Debian 默认的源地址 http://httpredir.debian.orghttp://mirrors.ustc.edu.cn 即可。

Debian 的默认源地址可能依情况而不同,请注意更改 httpredir.debian.org 为合适的地址。

可以使用如下命令:

sudo sed -i 's/httpredir.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

也可以直接编辑,以 Jessie 为例,编辑 /etc/apt/sources.list 文件,在文件最前面添加以下条目

sources.list:

  deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
  deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
  deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
  deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free

如果您使用的是 jessie 以外的版本,或者希望选择 IPv4/IPv6、HTTP/FTP,请使用我们的 配置生成器

相关链接

更新时间: