标签:cn mirrors 使用 Debian edu deb debian
文章目录
Based Ubuntu version
You can find the Debian version on which your Ubuntu version is based in the file: /etc/debian_version
From 10.04 up to 19.04:
Ubuntu | Debian |
---|---|
19.04 disco | buster / sid - 10 |
18.10 cosmic | buster / sid |
18.04 bionic | buster / sid |
17.10 artful | stretch / sid - 9 |
17.04 zesty | stretch / sid |
16.10 yakkety | stretch / sid |
16.04 xenial | stretch / sid |
15.10 wily | jessie / sid - 8 |
15.04 vivid | jessie / sid |
14.10 utopic | jessie / sid |
14.04 trusty | jessie / sid |
13.10 saucy | wheezy / sid - 7 |
13.04 raring | wheezy / sid |
12.10 quantal | wheezy / sid |
12.04 precise | wheezy / sid |
11.10 oneiric | wheezy / sid |
11.04 natty | squeeze / sid - 6 |
10.10 maverick | squeeze / sid |
10.04 lucid | squeeze / sid |
sid
is the development distribution of Debian (sid - testing - stable)You can find out the contents of the file without installing an entire system by view the sources for the package basefiles on Launchpad.
Debian 中科大源替换
警告:
操作前请做好相应备份
一般情况下,将
/etc/apt/sources.list
文件中 Debian 默认的源地址 http://deb.debian.org/ 替换为 http://mirrors.ustc.edu.cn 即可。
可以使用如下命令:
sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
当然也可以直接编辑
/etc/apt/sources.list
文件(需要使用sudo
)。
以下是 Debian Stable 参考配置内容:
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-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates 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
同时你也可能需要更改 Debian Security 源,请参考 Debian Security 源使用帮助
小技巧: 使用 HTTPS 可以有效避免国内运营商的缓存劫持,但需要事先安装 apt-transport-https
(Debian Buster 及以上版本不需要)。
标签:cn,mirrors,使用,Debian,edu,deb,debian 来源: https://blog.csdn.net/u010518627/article/details/115838140
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。