为 debian 不稳定的更正sources.list

joh*_*doe 0 debian

我最近开始使用不稳定的 debian repo 并将我的所有软件包更新到最新版本。我的 /etc/apt/sources.list 看起来像这样:

deb https://deb.debian.org/debian/ unstable main contrib non-free
deb-src https://deb.debian.org/debian/ unstable main contrib non-free

deb https://deb.debian.org/debian-security buster/updates main contrib non-free
deb-src https://deb.debian.org/debian-security buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb https://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src https://deb.debian.org/debian/ buster-updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)

这是安全的正确配置吗?我只将前 2 个更改为指向不稳定而不是 buster,因为您可以看到其他 4 个来源仍然指向 buster。

GAD*_*D3R 5

您需要按如下方式编辑源:

deb https://deb.debian.org/debian/ unstable main contrib non-free
deb-src https://deb.debian.org/debian/ unstable main contrib non-free
Run Code Online (Sandbox Code Playgroud)

Debian Sid 没有安全存储库。

Debian Wiki:测试/sid 用户的最佳实践是什么?

  • 另外,除非您确实计划下载和使用源包,否则最好(并且更快)注释掉 deb-src 行,避免延迟下载您不打算使用的源包文件。如果您确实需要软件包的源代码,您可以随时取消注释并运行“apt update”。IMO debian 应该默认注释掉这些,因为 99% 的用户永远不需要 src pkgs。 (3认同)