Debian、Ubuntu 源列表说明
转载:http://forum.ubuntu.org.cn/viewtopic.php?t=366506
概貌:
源列表主文件为 /etc/apt/sources.list,另兼取 /etc/apt/sources.list.d/*,最终结果以并集论。
源列表文件以行为单位,每行分多个字段,字段间以空白符分隔。井号(#)开头行为注释行。
字段说明:
第一字段,指示包类型。
取值只有「deb」「deb-src」两个,分别对应二进制包和源码包。通常只有二进制包对我们有用。
第二字段,指示镜像站点,即「源」!
URL 通常需要定位到某个目录,一般是打开该目录就能看到有「dists」「pool」两个子目录。看看 http://ftp.cn.debian.org/debian 或 http://ftp.sjtu.edu.cn/ubuntu/。
第三字段,指示包的「版本」,姑且称为「仓库」。
打开一个源,再进入「dists」子目录可见该「源」中有哪些「版本」可用,就是那些子目录。通常都是大小版本用减号(-)连在一起命名。
很明显大版本号即系统的版本名称,比如「squeeze」「wheezy」。没有减号连接小版本的就是主版本。
Debian 的小版本名称自 squeeze 起与 Ubuntu 基本相同。除主版本外,小版本有
「security」,Ubuntu 用于指安全性更新。即影响系统安全的 bug 修补。对此,Debian 特殊一些,见下文。
「updates」,非安全性更新。即不影响到系统安全的 bug 修补。
「proposed-updates」,预更新。小 beta 版。过后会进入「updates」或「security」。Ubuntu 仅用「proposed」,无后缀「updates」。
「backports」,后备。某系统版本自正式发行后,其所有软件便会冻结版本号(按原始软件发布时间论),所有软件只修 bug,不增加任何功能。但有些人可能需要更新的版本所提供的新功能,甚至某些较新的软件根本就没有。该仓库正因此而设,但欠官方维护,且可能在系统正式发布之后过一段时间才有效。此仓库版本处于第二优先顺序,除非特别指明或原来没有的软件,否则不会被安装。其余版本都处于第一优先顺序。
后续字段,指示包许可类型。
后续字段排名不分先后,最终结果取其并集。
按包本身的许可及所直接依赖的包的许可划分。打开一个源,进入「dists」子目录,然后再进入某个版本目录,又可见几个子目录。
Debian 最多有三种
「main」,本身是自由软件,且所有直接依赖的包也都是自由软件。
「contrib」,本身是自由软件,但直接依赖的包中有某个是非自由软件。
「non-free」,本身并非自由软件,无论依赖如何。当然,该软件本身是可以免费使用的。
Ubuntu 最多有四种
「main」,官方维护的自由软件。
「universe」,社区维护的自由软件。
「restricted」,设备专有驱动。
「multiverse」,同 Debian 的「non-free」。
某些另类的第三方源,不排除存在上述几种之外的可能。总之,打开仓库目录自己看。
特别之处:
Debian 安全性更新
不像 Ubuntu 放在「security」仓库,而是放在单独一个源中。各大镜像站通常都把一般的包放在根下来一级的「debian」目录中,而安全性更新则会放在「debian-security」目录中,如果有的话。
Debian 官方建议,所有安全性更新,只从官方(http://security.debian.org/debian-security)更新,不要用其它的镜像站,除非你对它非常放心。
安全性更新的第三字段形式固定为「版本名/updates」,比如「squeeze/updates」「wheezy/updates」。
Debian 多媒体源
一些多媒体软件因牵涉到版权问题,Debian 官方并未收录,有一网站专门填补该空缺,见 http://www.deb-multimedia.org。
最后忠告:
不要启用太多的源,同一「版本」的源启用一个即可,否则容易引起混乱。
实例:
Debian 7 wheezy
#deb http://ftp.tw.debian.org/debian wheezy main contrib non-free
#deb http://security.debian.org/debian-security wheezy/updates main contrib non-free
#deb http://ftp.tw.debian.org/debian wheezy-updates main contrib non-free
## deb http://ftp.tw.debian.org/debian wheezy-proposed-updates main contrib non-free
#deb http://ftp.tw.debian.org/debian-multimedia wheezy main non-free
#deb http://ftp.tw.debian.org/debian wheezy-backports main contrib non-free
deb http://ftp.cn.debian.org/debian wheezy main contrib non-free
deb http://ftp.cn.debian.org/debian-security wheezy/updates main contrib non-free
deb http://ftp.cn.debian.org/debian wheezy-updates main contrib non-free
# deb http://ftp.cn.debian.org/debian wheezy-proposed-updates main contrib non-free
deb http://ftp.cn.debian.org/debian-multimedia wheezy main non-free
deb http://ftp.cn.debian.org/debian wheezy-backports main contrib non-free
#deb http://ftp.sjtu.edu.cn/debian wheezy main contrib non-free
#deb http://security.debian.org/debian-security wheezy/updates main contrib non-free
#deb http://ftp.sjtu.edu.cn/debian wheezy-updates main contrib non-free
## deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main contrib non-free
#deb http://ftp.cn.debian.org/debian-multimedia wheezy main non-free
#deb http://ftp.sjtu.edu.cn/debian wheezy-backports main contrib non-free
#deb http://ftp.debian.org/debian wheezy main contrib non-free
#deb http://security.debian.org/debian-security wheezy/updates main contrib non-free
#deb http://ftp.debian.org/debian wheezy-updates main contrib non-free
## deb http://ftp.debian.org/debian wheezy-proposed-updates main contrib non-free
#deb http://www.deb-multimedia.org wheezy main non-free
#deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
Ubuntu 13.04 raring
deb http://debian.ustc.edu.cn/ubuntu/ raring main universe restricted multiverse
deb http://debian.ustc.edu.cn/ubuntu/ raring-security main universe restricted multiverse
deb http://debian.ustc.edu.cn/ubuntu/ raring-updates main universe restricted multiverse
# deb http://debian.ustc.edu.cn/ubuntu/ raring-proposed main universe restricted multiverse
deb http://debian.ustc.edu.cn/ubuntu/ raring-backports main universe restricted multiverse
#deb http://ftp.sjtu.edu.cn/ubuntu/ raring main universe restricted multiverse
#deb http://ftp.sjtu.edu.cn/ubuntu/ raring-security main universe restricted multiverse
#deb http://ftp.sjtu.edu.cn/ubuntu/ raring-updates main universe restricted multiverse
## deb http://ftp.sjtu.edu.cn/ubuntu/ raring-proposed main universe restricted multiverse
#deb http://ftp.sjtu.edu.cn/ubuntu/ raring-backports main universe restricted multiverse
#deb http://mirrors.163.com/ubuntu/ raring main universe restricted multiverse
#deb http://mirrors.163.com/ubuntu/ raring-security main universe restricted multiverse
#deb http://mirrors.163.com/ubuntu/ raring-updates main universe restricted multiverse
## deb http://mirrors.163.com/ubuntu/ raring-proposed main universe restricted multiverse
#deb http://mirrors.163.com/ubuntu/ raring-backports main universe restricted multiverse
Debian、Ubuntu 源列表说明的更多相关文章
- 使用apt-mirror建立局域网内的Debian/Ubuntu源镜像
转:http://forum.ubuntu.org.cn/viewtopic.php?t=41791 第一次翻译,翻译得不好还请大家见谅,多多指出错误~!:) 原文可以见如下的贴子:http://fo ...
- [转] 停止支持的老版本ubuntu源列表-old-releases
我使用的是ubuntu 9.10,在网上找了大半个月之后,今天终于找到了可用的源地址.感谢这位cgjcgs仁兄. 点击阅读原文 ubuntu的普通版本支持的时间都有限,过了支持的时间,更新源都会被停用 ...
- ubuntu源列表(清华,阿里,官方,选一即可)
Ubuntu的源列表在/etc/apt/sources.list中,替换即可 #清华的源deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial m ...
- debian 6软件更新源列表
deb http://ftp.debian.org/debian/ squeeze main non-free contribdeb http://ftp.debian.org/debian/ squ ...
- 中国区常用ubuntu源
1.首先备份Ubuntu 源列表sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表) 2.修改更新源sudo g ...
- 使用apt-mirror建立本地debian仓库源
先介绍一下环境: 主机:Win7 虚拟机:VirtualBox + Debian7 由于软件源的体积比较大,所以我又给虚拟机添加了一块50GB的虚拟硬盘(给虚拟机添加虚拟硬盘的方法参见:http:// ...
- ubuntu 12.10 sourcelist软件更新源列表(zz)
ubuntu 12.10正式版已经发布了,国内各大开源软件源也陆续更新了资源.今天分享一下ubuntu 12.10 软件更新源列表. 首先,备份一下ubuntu 12.04 原来的源地址列表文 ...
- ubuntu 12.10 软件更新源列表
ubuntu 12.10正式版已经发布了,国内各大开源软件源也陆续更新了资源.今天分享一下ubuntu 12.10 软件更新源列表. 首先,习惯性的备份一下ubuntu 12.04 原来的源地址列表文 ...
- ubuntu修改源列表sourcelist的方法
1.备份源列表 sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 2.找到对应版本的源,可以在以下界面当中找到,主要版本要对.htt ...
随机推荐
- 51Nod-1586-约数和
#include <cstdio> using namespace std; typedef long long ll; ; int n, q; int cnt[MAXN]; ll a[M ...
- 图论---图的m-点着色判定问题(回溯法--迭代式)
转自 图的m着色问题 图的m-着色判定问题——给定无向连通图G和m种不同的颜色.用这些颜色为图G的各顶点着色,每个顶点着一种颜色,是否有一种着色法使G中任意相邻的2个顶点着不同颜色? 图的m-着色优化 ...
- php windows rename 中文出错
php windows rename 中文出错 rename()函数可以重命名文件.目录等,但是要注意目的地和起始地址的编码. 比如:我的PHP文件编码是UTF-8,但是在WINDOW系统中中文默认编 ...
- loj6100 「2017 山东二轮集训 Day1」第一题
传送门:https://loj.ac/problem/6100 [题解] 我们考虑维护从某个端点开始的最长满足条件的长度,如果知道了这个东西显然我们可以用主席树来对每个节点建棵关于右端点的权值线段树, ...
- windows启动redis服务
参考:https://www.cnblogs.com/M-LittleBird/p/5902850.html 使用python的pip install redis以后还需要下载安装redis安装文件才 ...
- swift 之嵌套的理解 func chooseStepFunction(backwards: Bool) -> (Int) -> Int
http://blog.csdn.net/lzx_322/article/details/28861199 swift 函数使用前面需要添加 func 有返回值需要使用-> 后面添加返回类型 , ...
- [ python ] 使用sys模块实现进度条
在写网络IO传输的时候, 有时候需要进度条来显示当前传输进度,使用 sys 模块就可以实现: sys.stdout.write() 这个函数在在控制台输出字符串不会带任何结尾,这就意味着这个输出还没有 ...
- xshell命令大全
suse linux 常用命令 (1)命令ls——列出文件 ls -la 给出当前目录下所有文件的一个长列表,包括以句点开头的“隐藏”文件 ls a* 列出当前目录下以字母a开头的所有文件 ls -l ...
- 【计算机网络】http中get和post的区别
常见回答: 1. GET使用URL或Cookie传参.而POST将数据放在BODY中. 2. GET的URL会有长度上的限制,则POST的数据则可以非常大. 3. POST比GET安全,因为数据在地址 ...
- python的property的用法
假设定义了一个类:C,该类必须继承自object类,有一私有变量_xclass C: def __init__(self): self.__x=None 1.现在介绍第一种使用属性的方法: 在该类中定 ...