Debian 9 Stretch国内常用镜像源

  • Post author:
  • Post category:其他


随着Debian 9的普及,但由于伟大的墙的存在,那就有必要整理一下国内的镜像站点。

1.使用说明

一般情况下,修改/etc/apt/sources.list文件,将Debian的默认源地址改成新的地址即可,比如将http://deb.debian.org改成https://mirrors.xxx.com,可使用以下命令:

sed -i "s@http://deb.debian.org@https://mirrors.xxx.com@g" /etc/apt/sources.list

若要使用https源,则需要执行


apt-get install apt-transport-https


,再执行


apt-get update


更新索引。

2.常用站点列表



163镜像站

deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://