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

1.使用说明

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

  1. 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镜像站

  1. deb http://mirrors.163.com/debian/ stretch main non-free contrib
  2. deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
  3. deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
  4. deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
  5. deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
  6. deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
  7. deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
  8. deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

中科大镜像站

  1. deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
  2. deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
  3.  
  4. deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
  5. deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
  6.  
  7. deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
  8. deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
  9.  
  10. deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
  11. deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

阿里云镜像站

  1. deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
  2. deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
  3. deb http://mirrors.aliyun.com/debian-security stretch/updates main
  4. deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
  5. deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
  6. deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
  7. deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
  8. deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

华为镜像站

  1. deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
  2. deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
  3. deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
  4. deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
    deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
  5. deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free

清华大学镜像站

  1. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
  2. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
  3. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
  4. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
  5. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
  6. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
  7. deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
  8. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free

兰州大学镜像站

  1. deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
  2. deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
  3. deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
  4. deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
  5. deb http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free
  6. deb-src http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free
  7. deb http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free
  8. deb-src http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free

上海交大镜像站

  1. deb https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free
  2. deb-src https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free
  3. deb https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free
  4. deb-src https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free
  5. deb https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free
  6. deb-src https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free
  7. deb https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free
  8. deb-src https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free

最后附上官方全球镜像站列表地址https://www.debian.org/mirror/list

Debian 9 Stretch国内常用镜像源的更多相关文章

  1. 使用国内docker镜像源

    在国内,通过Docker的pull和push命令访问hub.docker时,网络十分慢,而且会出现各种各样的网络连接问题.因此这里介绍下如何使用国内的镜像源,这里以DaoCloud为例. 注册DaoC ...

  2. pip操作以及window和虚拟机中为pip更换一个国内的镜像源的方法

    前言 在学习PyQt5的过程中,参考王硕和孙洋洋的PyQt5快速开发与实战中,看到的关于Python开发技巧与实战,觉得挺好的 所以将其摘抄了下来方便阅读.之后还有一个关于更换pip镜像源的方法,方便 ...

  3. 为你的pip更换一个国内的镜像源

    为你的pip更换一个国内的镜像源 是否常常为pypi官网被无故和谐掉导致pip不能下载python的各个包而痛心疾首? 是否常常在深夜里看着pip install 下载包的速度慢如乌龟而长吁短叹? 是 ...

  4. 使用国内的镜像源搭建 kubernetes(k8s)集群

    1. 概述 老话说的好:努力学习,提高自己,让自己知道的比别人多,了解的别人多. 言归正传,之前我们聊了 Docker,随着业务的不断扩大,Docker 容器不断增多,物理机也不断增多,此时我们会发现 ...

  5. pip命令使用国内pypi镜像源加速在线安装

    参考:http://www.cnblogs.com/yudar/p/4444097.html 用easy_install和pip来安装第三方库很方便 它们的原理其实就是从Python的官方源pypi. ...

  6. 修改CentOS默认yum源为国内yum镜像源

    CentOS默认的yum源不是国内的yum源,在通过yum安装一些软件的时候,会出现这样那样的错误,以及在下载安装的速度上也是非常慢的. 所以这个时候就需要将yum源替换成国内的yum源,国内主要开源 ...

  7. 国内Ubuntu镜像源

    国内有很多Ubuntu的镜像源,包括阿里的.网易的,还有很多教育网的源,比如:清华源.中科大源. 我们这里以中科大的源为例讲解如何修改Ubuntu 18.04里面默认的源. 编辑/etc/apt/so ...

  8. 修改pip源到国内的镜像源

    国内网络原因,经常无法访问一些技术网站,pypi.python.org就是其中一个.所以,使用pip给Python安装软件时,经常出现错误.like this: File "/usr/lib ...

  9. pip和conda添加国内清华镜像源(亲测有效)

    文章目录 pip和conda 添加国内清华镜像 1. pip源更改: 2. conda源更改: pip和conda 添加国内清华镜像 python模块安装,使用国内源可以提高下载速度. 1. pip源 ...

随机推荐

  1. 正则求解@" (?<=^\[length=)(\d+)(?=\])"

    举个例子 [length=1548]这个正则 就是匹配 length的值了(1548)(?<=exp)匹配之后的(?=exp)匹配表达式之前的^是边界,在行首例如 aa[length=1548] ...

  2. [转][SerialPort]测试用例

    private void Form1_Load(object sender, EventArgs e) { var s = SerialPort.GetPortNames().OrderBy(r =& ...

  3. SfMLearner 记录

    2019年3月2日09:29:54 正在看SfMLearner的pytorch源码,意识到无监督的深度估计最重要的是利用实体的一致性 来建立loss. 对于一个不移动的物体,相机从一个pose到另一个 ...

  4. myeclipse2018安装教程(附下载地址)

    这两天在网上找myeclipse2018的安装包和破解工具,很分散,并且破解失败很多,现在总结下 myeclipse2018下载地址: https://pan.baidu.com/s/1NV7cAsN ...

  5. 网页中HTML代码如何实现字体删除线效果

    有的朋友在制作网站的时候,需要给字体制作删除线,例如:选择题,错误标识等!那么我们就需要用到了<s>这个标签写法如下 字体删除线: <s>这里是内容</s> 效果如 ...

  6. Apartment 2019:(1)创建墙体

    墙体建模 The Walls 软件:SketchUp Pro 2017 墙体模型 建模过程: 一.导入图像并调整大小 导入公寓平面参考图/户型图(来自网络),导入为图像.连续三击鼠标左键,选中所有的几 ...

  7. 名称 ****不是有效的标识符 sql

    假设存储过程:proc_test create proc proc_test @ProdID varchar(10) as begin declare @sql varchar(max) @sql = ...

  8. nfs与dhcp服务

    NFS服务端概述 NFS,是Network File System的简写,即网络文件系统.网络文件系统是FreeBSD支持的文件系统中的一种,也被称为NFS: NFS允许一个系统在网络上与他人共享目录 ...

  9. yml文件搞一波

    引用https://www.cnblogs.com/zslli/p/8717483.html https://www.cnblogs.com/baoyi/p/SpringBoot_YML.html 划 ...

  10. 五、Python-字典与集合

    字典是一系列键-值对,每个键都与一个值想关联,可以用键来访问与之关联的值,与键相关联的值可以是数字.字符串.列表乃至字典(Python可以将任何对象作为字典中的值),Python中,字典用“{}”表示 ...