将 Debian 主存储库重新添加到源中

将 Debian 主存储库重新添加到源中

我有一个朋友从家里刻录的 CD 安装了 Debian。但是当我们尝试apt-get新的软件包(例如 Audacity、Emacs)时,他的安装无法识别它们(“无法从此源获得”)

感觉就像他从他的来源中丢失了主要的 Debian 存储库。在/etc/apt/sources.list他只有

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates contrib main

# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.

deb http://ftp.debian.org/debian/ jessie-updates main contrib
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib

这些包括主 Debian 存储库吗?还是只是“更新”?例如,名为 audactiy-data 的包可见,但 audacity 本身不可见。

如果是这样,我们如何再次添加主存储库?它的地址是什么?

答案1

我已经遇到这个问题很多次了,我把它“写下来”

# tested works
# jessie updates
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://mirror.cogentco.com/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
# source list
deb-src http://ftp.us.debian.org/debian jessie main contrib non-free
deb-src http://security.debian.org/jessie/updates main contrib non-free

答案2

你只有updates列出的。

您缺少的存储库base位于

deb http://ftp.debian.org/debian/ jessie main contrib
deb-src http://ftp.debian.org/debian/ jessie main contrib

相关内容