debian源配置

debian系统安装过程中会提示选择区域的源。一般选择完安装好系统就不需要再修改了。如若需要切换那就需要编辑/etc/apt/sources.list文件。

以清华镜像源为例,提供了各个版本可供选择和切换,很方便。


如下是debian的testing版源

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ testing main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-updates main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-backports main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security testing-security main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security testing-security main contrib non-free

很多时候我们直径安装的debian的testing版的iso,在安装完查看源的时候,源里面并不像上面那样显示的是testing,而是当前已发部的稳定版版本的下一个版本的代号。

如下是debian的sid版,sid版名字永远都是sid!!!

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
禁止转载,如需转载请通过简信或评论联系作者。

推荐阅读更多精彩内容