ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Debian 使用

2021-04-18 19:58:57  阅读:238  来源: 互联网

标签: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:

UbuntuDebian
19.04 discobuster / sid - 10
18.10 cosmicbuster / sid
18.04 bionicbuster / sid
17.10 artfulstretch / sid - 9
17.04 zestystretch / sid
16.10 yakketystretch / sid
16.04 xenialstretch / sid
15.10 wilyjessie / sid - 8
15.04 vividjessie / sid
14.10 utopicjessie / sid
14.04 trustyjessie / sid
13.10 saucywheezy / sid - 7
13.04 raringwheezy / sid
12.10 quantalwheezy / sid
12.04 precisewheezy / sid
11.10 oneiricwheezy / sid
11.04 nattysqueeze / sid - 6
10.10 mavericksqueeze / sid
10.04 lucidsqueeze / 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. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有