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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
H
Heimdal Security Blog
Jina AI
Jina AI
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
AWS News Blog
AWS News Blog
C
Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Hacker News
The Hacker News
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
S
Securelist
P
Privacy International News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 聂微东
博客园 - 叶小钗
J
Java Code Geeks
V
V2EX
博客园 - Franky
Spread Privacy
Spread Privacy
K
Kaspersky official blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Simon Willison's Weblog
Simon Willison's Weblog
Project Zero
Project Zero
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
C
CERT Recently Published Vulnerability Notes
Latest news
Latest news
NISL@THU
NISL@THU
罗磊的独立博客
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
V
Visual Studio Blog

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版本,如果发现一些不正常的情况(例如不正常的卸载),暂时不要升级,一般就不会出大问题。