アップデートを実行するときに "apt-get update"コマンドが探す内容をどのように変更しますか?

アップデートを実行するときに

私の無能さを許してください。私はまだGNU/Linuxに初めて接している人です。私はDebian wheezeを使用しています。

私が入力している間apt-get update

最後にこれを得た

W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/wheezy/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/wheezy/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

私の質問は、更新できない項目を無視するために編集(aptが何を見るかを推測)することです。または、完全に削除してメッセージを受信しないようにします。

編集する:

resources.listに見える唯一のこと

deb ftp.sun.ac.za/debian wheezy main contrib non-free
deb-src ftp.sun.ac.za/debian wheezy main contrib non-free
deb security.debian.org wheezy/updates contrib non-free main
deb-src security.debian.org wheezy/updates contrib non-free maim

それはすべてです。そのうちの1つを削除する必要がありますか?私もsources.list.d中を覗くと空いていた。

2番目の編集:

の出力はapt-cache policy次のとおりです。

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main amd64 Packages
     release v=14.04,o=LP-PPA-webupd8team-java,a=trusty,n=trusty,l=Oracle Java (JDK) 6 / 7 / 8 Installer PPA,c=main
     origin ppa.launchpad.net
 500 http://security.debian.org/ wheezy/updates/non-free Translation-en
 500 http://security.debian.org/ wheezy/updates/main Translation-en
 500 http://security.debian.org/ wheezy/updates/contrib Translation-en
 500 http://security.debian.org/ wheezy/updates/main amd64 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 500 http://security.debian.org/ wheezy/updates/non-free amd64 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=non-free
     origin security.debian.org
 500 http://security.debian.org/ wheezy/updates/contrib amd64 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=contrib
     origin security.debian.org
 500 ftp://ftp.sun.ac.za/debian/ wheezy/non-free Translation-en
 500 ftp://ftp.sun.ac.za/debian/ wheezy/main Translation-en
 500 ftp://ftp.sun.ac.za/debian/ wheezy/contrib Translation-en
 500 ftp://ftp.sun.ac.za/debian/ wheezy/non-free amd64 Packages
     release v=7.4,o=Debian,a=stable,n=wheezy,l=Debian,c=non-free
     origin ftp.sun.ac.za
 500 ftp://ftp.sun.ac.za/debian/ wheezy/contrib amd64 Packages
     release v=7.4,o=Debian,a=stable,n=wheezy,l=Debian,c=contrib
     origin ftp.sun.ac.za
 500 ftp://ftp.sun.ac.za/debian/ wheezy/main amd64 Packages
     release v=7.4,o=Debian,a=stable,n=wheezy,l=Debian,c=main
     origin ftp.sun.ac.za
Pinned packages:

3番目と最後の編集: 一度入力すると、返さgrep -Ri launchpad *れた結果が表示され、入力を続けてnano sources.list.d/webupd8team-java.listその中のすべてを削除できます。その後、そこにあるすべての内容を入力し nano sources.list.d/webupd8team-java-wheezy.listて削除しました。それからそれをやったので、apt-get updateすべてが正常に戻りました。

ベストアンサー1

ほとんどの場合、ソースコード行はファイルにあるので/etc/apt/sources.list編集する必要があります。ただし、そこに見つからない場合は、ディレクトリ内のファイルを見つけます/etc/apt/sources.list.d。私が知る限り、ソースラインは〜しなければならない両方の場所にあります。引用する: man sources.list

#ソースコード行の前にコメント文字を配置するだけでこれを無視できます。

おすすめ記事