Debian:apt-get 找不到任何软件包

Debian:apt-get 找不到任何软件包

我遇到的问题是 apt-get 在新安装的 Debian 7.3 上找不到任何包。

首先,我收到错误,提示我应该输入安装 CD,然后我编辑/etc/apt/sources.list并注释掉第一行:

# deb cdrom:[Debian GNU/Linux 7.3.0 _Wheezy_ - Official amd64 DVD Binary-1 20131215-04:56]/ wheezy contrib main

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

# wheezy-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/ wheezy-updates main contrib
deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib

然后我做了apt-get update

root@Bautz:~# apt-get update
OK   http://security.debian.org wheezy/updates Release.gpg
OK   http://security.debian.org wheezy/updates Release
OK   http://ftp.debian.org wheezy-updates Release.gpg
OK   http://security.debian.org wheezy/updates/main Sources
OK   http://ftp.debian.org wheezy-updates Release
OK   http://security.debian.org wheezy/updates/contrib Sources
OK   http://security.debian.org wheezy/updates/main amd64 Packages
OK   http://security.debian.org wheezy/updates/contrib amd64 Packages
OK   http://ftp.debian.org wheezy-updates/main Sources
OK   http://security.debian.org wheezy/updates/contrib Translation-en
OK   http://security.debian.org wheezy/updates/main Translation-en
OK   http://ftp.debian.org wheezy-updates/contrib Sources
OK   http://ftp.debian.org wheezy-updates/main amd64 Packages/DiffIndex
OK   http://ftp.debian.org wheezy-updates/contrib amd64 Packages
OK   http://ftp.debian.org wheezy-updates/contrib Translation-en
OK   http://ftp.debian.org wheezy-updates/main Translation-en/DiffIndex
Paketlisten werden gelesen... Fertig

如果我现在想通过 apt-get 安装任何软件包,我会得到:

root@Bautz:~# apt-get install bmon
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
E: Paket bmon kann nicht gefunden werden.
root@Bautz:~# apt-get install htop
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
E: Paket htop kann nicht gefunden werden.
root@Bautz:~# 

有人能给出一些建议吗?

答案1

尝试将其中部分或全部添加到您的 /etc/apt/sources.list 文件中:

deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
deb http://ftp.us.debian.org/debian/ wheezy-proposed-updates contrib non-free main
deb http://ftp.debian.org/debian/ wheezy-backports main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free

相关内容