如何将 debian“测试”存储库添加到 apt-get

scc*_*ott 7 debian apt

我很难在 google 和 debian 文档上搜索这个答案!

FAQ页面也不是很清楚。我的意思是它不是 100% 白痴证明清楚。
https://wiki.debian.org/DebianTesting

scc*_*ott 15

“testing” repo 使用户(即apt-getsynaptic)可以使用新的更新包,否则这些包将在下一个Debian版本中出现。

注意:测试包可能不是最稳定的包,但它比“不稳定”的存储库更稳定。

  1. 以 root 身份登录/etc/apt/sources.list在您喜欢的编辑器中打开文件

    vi /etc/apt/sources.list

  2. 添加测试仓库。添加以下行。

    deb http://http.us.debian.org/debian/ testing non-free contrib main

  3. 然后运行 sudo apt-get update

其他注意事项:

注意添加的 repo 行的格式。

deb <link from where packages will be downloaded from> <repoName> <sub branches of the repo>

例子:

deb http://http.us.debian.org/debian/ testing non-free contrib main
deb http://http.us.debian.org/debian/ stable non-free contrib main
deb http://http.us.debian.org/debian/ unstable non-free contrib main
deb http://http.us.debian.org/debian/ wheezy non-free contrib main

注意上面一行中的“wheezy”repo 是 debian 7.0 发行版的默认 repo。不稳定的 repo 可能有容易出错的包。

  • 这是一个如此可怕的想法,并且是一个很大的 Debian No-No,但它*是*对这个问题的一个很好的回答。 (3认同)