序:
近期在编写 Dockerfile 镜像的时候,折腾了很多源,本文列了几个速度还可以的国内源。
本文编撰于2018.12.06。
- 清华
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib
- 科大
deb http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib
- 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://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
- 交大
deb https://mirror.bjtu.edu.cn/debian/ stretch main non-free contrib
deb https://mirror.bjtu.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirror.bjtu.edu.cn/debian/ stretch-backports main non-free contrib
deb-src https://mirror.bjtu.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirror.bjtu.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirror.bjtu.edu.cn/debian/ stretch-backports main non-free contrib
deb https://mirror.bjtu.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src https://mirror.bjtu.edu.cn/debian-security/ stretch/updates main non-free contrib
- 阿里
deb https://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb https://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib
感谢这些机构的源。
one more thing:
镜像没有vi,直接用如下方法替换
cat > sources.list << EOF
...
EOF
都刷了一遍,杭州ECS上最快的是163源,惊讶~~