Saya punya masalah yang apt-get tidak menemukan paket di Debian 7.3 saya yang baru diinstal.
Pertama saya mendapat kesalahan bahwa saya harus memasukkan CD Instalasi, kemudian saya mengedit /etc/apt/sources.list
dan mengomentari baris pertama:
# 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
Lalu saya lakukan 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
Jika saya ingin menginstal paket apa pun sekarang melalui apt-get, saya mendapatkan:
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:~#
Adakah seseorang yang memiliki saran?
apt-get update
. Sudahkah Anda mengubah konfigurasi apt?Jawaban:
Coba tambahkan beberapa atau semua ini ke file /etc/apt/sources.list Anda:
sumber