debian 更换源 使用国内源 配置方法
配置前请先参考:
https://wiki.debian.org/SourcesList
https://www.debian.org/mirror/list
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
http://mirrors.ustc.edu.cn/help/debian.html
官方镜像地址:
ftp.cn.debian.org #中科大
ftp2.cn.debian.org #清华
nano /etc/apt/sources.listdeb http://ftp.cn.debian.org/debian stretch main
deb http://ftp.cn.debian.org/debian-security stretch/updates main
deb http://ftp.cn.debian.org/debian stretch-updates main
使用https地址,可以有效避免国内运营商的缓存劫持
以清华大学地址为例:
apt install apt-transport-https
nano /etc/apt/sources.listdeb https://mirrors.tuna.tsinghua.edu.cn/debian stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
#backports请按需使用
#deb https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports main contrib non-free
#buster请按需使用
#deb https://mirrors.tuna.tsinghua.edu.cn/debian buster main
https://backports.debian.org
使用backports安装应用:
apt -t stretch-backports install ...
若要使用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://mirrors.163.com/debian-security/ stretch/updates main non-free contrib |
中科大镜像站
deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free |
清华大学镜像站
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free |
阿里云镜像站
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib |
兰州大学镜像站
deb http://mirror.lzu.edu.cn/debian stable main contrib non-free |
上海交大镜像站
deb https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free deb https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free deb https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free |
华为镜像站
deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free 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 deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free |
debian 更换源 使用国内源 配置方法相关推荐
- Debian 9 更换源 使用国内源 配置方法
Debian 9 更换源 使用国内源 配置方法 使用中科大的源 ftp.cn.debian.org #中科大 nano /etc/apt/sources.listdeb http://ftp.cn.d ...
- Docker 更换镜像内部的软件源为国内源(apt-get源)
Docker 更换镜像内部的软件源为国内源(apt-get源) 1.查看镜像内部的软件源 2.查看系统版本 3.更换软件源 3.1 在镜像内部更换 3.2用Dockerfile构建时更换 1.查看镜像 ...
- 更换Ubuntu默认源为国内源
安装Ubuntu后,使用国外源太慢了,修改为国内源会快很多. 1.修改过程 1.1 备份 备份/etc/apt/sources.list,命令如下: sudo cp /etc/apt/sources. ...
- pip国内源设置方法
pip 是一个现代的,通用的 Python 包管理工具.提供了对 Python 包的查找.下载.安装.卸载的功能. 关于pip 默认安装路径有问题的可以看这篇文章:https://blog.csdn. ...
- 九阴白骨爪(1)修改APT源为国内源的懒人法
九阴白骨爪(1)修改APT源为国内源的懒人法 最近搞了一个电信的云主机,把自己做的一个小系统放了上去.由于我以前没有写过B/S架构的东西,这是第一次,所以从开发到部署遇到N多的坑.现在把这些悲惨的遭遇 ...
- debian系linux,更换apt-get官方源为国内源
1. 更换apt-get官方源为163源 操作前做好相应备份 # mv /etc/apt/sources.list /etc/apt/sources.list.bak 以Jessie为例,编辑/etc ...
- CentOS/Ubuntu/Debian常用版本更换国内源的方法
Linux系统安装完后软件源一般都是国外服务器,在国内特别慢,这时候就需要更换国内的镜像源.如163.aliyun 还有各高校镜像源等.记住先备份原始源在更换源,以防以后备用. 一.centos 1. ...
- 更换pip下载源为国内源(pip加速下载,永久性)
pip install django 像上面这种情况安装python包默认是从pypi.org官网下载包,官网是国外的,下载速度比较慢. 怎么加速下载呢? 更换下载地址,下载地址更换成国内源,我知道的 ...
- m1 MBA配置Homebrew环境+国内源配置
文章目录 写在前面 Homebrew本地编译版安装 Homebrew Rosetta2转译版安装 设置环境变量 换源 结语 主要参考 写在前面 最近入手一台8+256m1Mac Book air,想用 ...
最新文章
- centos文本查看及处理相关的常用命令
- Resolving Problems installing the Java JCE Unlimited Strength Jurisdiction Policy Files package--转
- WCF分布式开发常见错误(26):Authentication failed
- 计算机编程术语. dsp,什么是数字信号处理器(DSP)
- 沙老师的作业系列——Crudd‘s Crack Head
- 12009.IMU惯导传感器
- 相比 Windows 为什么越来越多人选择Linux?
- python与线性代数 矩阵方程
- javascript ep
- python - 模块,包
- 微信开发者工具如何使用SCSS和配置wxml文件高亮及格式化
- 飞图FLYTOUAV垂起固定翼无人机采用交叉环绕飞行搭载单镜头相机做高精度,高效率,长航时,大比例尺地籍测量中应用
- H5端关于img居中的一个兼容性bug
- 宇枫资本如何挑选靠谱理财平台
- png转bmp,png批量转成bmp
- 基于html5贪吃蛇小游戏,H5 canvas实现贪吃蛇小游戏
- 【主线任务】掌握数据的力量!数据科学家们速速来战!
- 零和博弈、正和博弈和负和博弈
- 电瓶车续航测试软件,寻找真实续航英雄!7款纯电动车续航测试
- Electron-vue 安装步骤
热门文章
- 过来人教你如何系统学STM32
- c++日志工具之——log4cplus
- 10 本最值得阅读的网络安全书籍推荐
- 获取深户股市列表api_利用Tushare获取沪深股票数据与股票数据分析
- memsql-官宣世界最快的内存关系型数据库安装部署
- 怎样隐藏计算机中的文件夹,电脑上的文件夹不想被别人看到怎么办?如何隐藏电脑文件夹?-电脑文件夹怎么加密...
- sql注入-简要SQL注入
- python vlookup_Python - 如何使用 Pandas 进行vLookup
- AWK----awk与shell交互
- Autofill简单使用