IT袋

当前位置:主页 > 经验教程 > 系统教程 >

Debian各版本号

Debian各版本号 代号和软件源(2)

时间:2024-02-22 18:39:12 来源:IT袋 作者:马勇
导读:Debian各版本号,可在 Debian 的镜像站找到对应的地区。中国大陆的有网易镜像站和兰州大学镜像站。 以网易镜像站为例, Debian 下载时,常见有以下几类镜像。 live : Live

Debian各版本号

可在 Debian 的镜像站找到对应的地区。中国大陆的有网易镜像站和兰州大学镜像站。

以网易镜像站为例,

Debian 下载时,常见有以下几类镜像。

  • live: Live 版本是不完整的镜像,包含了一些预装的软件包,可以在安装之前试用 Debian。
  • cd (netinst): 镜像是最小的,只包含安装系统和最流行的软件包。
  • dvd: DVD 镜像比 CD 镜像大,包含更多的软件包。
  • bd: 指蓝光光盘 (blu-ray disc,BD) 的镜像。bd 镜像相对而言更全。
  • dlbd: 指双层蓝光光盘(dual-layer blu-ray,dlbd)的镜像。dlbd 更大更全,包含了几乎所有可用的软件包。

我个人选择以下格式 Debian 下载:

Debian各版本号

软件源区别

Debian 将其软件仓库分为以下几种:

  • 不稳定 (Unstable)
  • 测试 (Testing)
  • 稳定 (Stable)
  • 实验型 (Experimental)

根据 Debian 软件仓库中软件的自由度分为以下三种:

  • main: 完全遵循 Debian自由软件指南 (DFSG) 的自由软件。
  • contrib: 遵循 DFSG 的自由软件,但依赖于 non-free 中的软件。
  • non-free-firmware:通常不遵循 DFSG,但为了让系统能够正常运行,无法替换或避免使用这些软件。
  • non-free: 不遵循 DFSG 的非自由软件。可免费下载,但不提供免费许可。

Debian 软件源文件通常位于/etc/apt/sources.list,可以以直接编辑此文件,也可以在/etc/apt/sources.list.d/目录下创建单独的文件来添加源。

软件源格式如下:

deb [uri] distribution [component1] [component2] [component3]
deb-src [uri] distribution [component1] [component2] [component3

上述参数的解释:

  • deb: 包含的是二进制包,可通过apt安装。
  • deb-src: 包含的是源代码包,可通过apt-get source $package命令进行下载和编译。
  • distribution: 指发行版代号。
  • component: 组件的名称,例如 main, contrib 或 non-free 等。

distribution 有以下几种类型:

  • bookworm: 稳定版软件源。
  • bookworm-updates: 对稳定版的一些小更新。
  • bookworm-backports: 从测试版和不稳定版上重新编译的软件包,可以在稳定版 Debian 上运行。
  • bookworm-security: 对稳定版的安全更新。

以下是 bookworm 版具体的镜像源写法,使用了清华镜像源:

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

上述分享的Debian各版本号、代号和软件源的相关内容,供网友参考,希望能解决您的问题。

相关阅读