惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
量子位
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
H
Help Net Security
The Cloudflare Blog
U
Unit 42

codeqihan的博客

现代化的开源终端-Tabby 基于Rust开发的编辑器-Edit ChatGPT Atlas使用体验 联通宽带改桥接 Chrony安装以及配置 电信跨网QoS ungoogled-chromium浏览器简介 npm的高性能替代品pnpm 使用markdownlint-cli格式化Markdown文件 Nginx的安装以及配置 使用unattended-upgrades自动更新软件包 Debian使用Backports源 压缩网页体积 2024年度总结 轻量级的探针-Beszel ai.robots.txt阻止AI爬虫 甲骨文圣何塞ARM测评 公共DOH收集 com又涨价了
Debian切换至Testing/Sid版本
codeqihan · 2025-01-12 · via codeqihan的博客

Debian提供了三种发行版本:Stable (稳定版),Testing (测试版) 和 Unstable (不稳定版,也称为 Sid)。Debian Stable版本很稳定,但软件包较旧(一般都是Stable版本发布几个月之前的,发布之后一般情况下只有安全更新)。最新的软件包都会先进入Debian Sid,在一段时间没有大问题之后就会进入Testing版本,在新的稳定版本推出之后,测试版中的软件包就会变为稳定版的软件包。
Testing和Sid都是滚动发行版本,推荐使用测试版本,能在稳定的同时确保软件包是最新的(不过还是没有稳定版本稳定)。
实际上还有一个Experimental版本,但其中很多软件包处于开发/RC阶段,不推荐使用

需要注意的是,Testing版本可能不会获得很及时的安全更新,如果软件包的维护者上传了修复了安全问题的软件包,它就会进入Sid,并在一段时间之后进入Testing,Debian安全团队可能不会关注Testing和Sid(特别是Sid)版本,这一点也要注意。如果想要获得及时的安全更新(软件包维护者的),Sid可能会更好一些。

sid 有安全更新吗?

并没有和稳定版相同意义上的那种安全更新。如果软件包的维护者修复了一个安全问题,并上传了软件包,它会以正常方式进入 sid。如果维护者没这么做,那就不会。安全小组只会关注稳定版本(有可能也会考虑测试版本(testing)……这还是一个待解决的问题)。

——Debian Wiki

Debian切换到Testing和Sid后,再切换回Stable版本比较困难。如果是Testing想要切换回稳定版,可以试着将Testing替换为当前测试版本的代号(现在是trixie),然后等待下一个稳定版本发布,当前的Testing将变为稳定版。Sid似乎没有好的办法,只能重装系统或者强制降级回稳定版。

如果想要切换到Testing版本,可以修改 /etc/apt/sources.list(一些Debian 12可能是 /etc/apt/sources.list.d/debian.sources)中的稳定版版本代号(Debian 12为bookworm)为Testing,例如原来的 /etc/apt/sources.list是这样的

1
2
3
4
5
6
7
8
9
deb https://deb.debian.org/debian/ bookworm main

deb-src https://deb.debian.org/debian/ bookworm main

deb https://security.debian.org/debian-security bookworm-security main
deb-src https://security.debian.org/debian-security bookworm-security main

deb https://deb.debian.org/debian/ bookworm-updates main
deb-src https://deb.debian.org/debian/ bookworm-updates main

修改为

1
2
3
4
5
6
7
8
9
deb https://deb.debian.org/debian/ testing main

deb-src https://deb.debian.org/debian/ testing main

deb https://security.debian.org/debian-security testing-security main
deb-src https://security.debian.org/debian-security testing-security main

deb https://deb.debian.org/debian/ testing-updates main
deb-src https://deb.debian.org/debian/ testing-updates main

之后 apt update,会看到有更新的软件包可以更新(Testing或Sid的软件包),apt dist-upgrade更新即可。之后输入 cat /etc/debian_version,会看到版本变成了trixie/sid,代表已经切换完毕。

如果想要切换到Sid版本,只需要将testing改为sid即可(Debian Wiki中要求先切换为testing,再切换为sid,这里也不建议直接从稳定版本切换为sid)。

切换到Testing或sid版本之后,如果发现软件缺陷,可以在Debian 缺陷跟踪系统报告给Debian软件包维护人员。在 apt update的时候建议留意一下,特别是Sid版本,如果发现一些不正常的情况(例如不正常的卸载),暂时不要升级,一般就不会出大问题。