apt-get 更新レポート 406 許可されていません

apt-get 更新レポート 406 許可されていません

私は最近これを発見しapt-get updateaptitude updateいくつかのバグを報告しました。

W: Failed to fetch http://linux.dropbox.com/debian/dists/wheezy/main/binary-amd64/Packages: Bad header line
W: Failed to fetch http://ftp.informatik.uni-frankfurt.de/debian/dists/stable/contrib/binary-amd64/Packages: 406  Not Acceptable
W: Failed to fetch http://ftp.informatik.uni-frankfurt.de/debian/dists/stable/non-free/binary-amd64/Packages: 406  Not Acceptable
W: Failed to fetch http://ftp.informatik.uni-frankfurt.de/debian/dists/stable/contrib/binary-i386/Packages: 406  Not Acceptable
W: Failed to fetch http://ftp.informatik.uni-frankfurt.de/debian/dists/stable/non-free/binary-i386/Packages: 406  Not Acceptable
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Couldn't rebuild package cache

サーバーを確認してみてくださいPackages.gzが、存在しませPackages.bz2Packages。これは、.NETサーバーだけでなくメインサーバーでも発生しますftp.informatik.uni-frankfurt.de

いくつかの調査の終わりに、最近、すべてのミラーは圧縮さPackagesれた形式のファイルのみを含むように更新されましたが、もはや純粋な形式は含まれていないことがわかりました。通常のファイルの代わりに圧縮ファイルをどのように知ってapt-get使用するのですか?aptitude

私が持っていたものは次のとおりですsources.list(編集しましたが、以前は動作しました)。

#deb http://ftp.de.debian.org/debian/ stable main contrib non-free
#deb-src http://ftp.de.debian.org/debian/ stable main
deb http://ftp.informatik.uni-frankfurt.de/debian/ stable main contrib non-free

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

# wheezy-updates, previously known as 'volatile'
#deb http://ftp.de.debian.org/debian/ stable-updates main contrib
#deb-src http://ftp.de.debian.org/debian/ stable-updates main contrib
deb http://ftp.informatik.uni-frankfurt.de/debian/ stable-updates main contrib

deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

#deb http://ftp.de.debian.org/debian/ wheezy-backports main contrib non-free
deb http://ftp.informatik.uni-frankfurt.de/debian/ wheezy-backports main contrib non-free

#deb http://ftp.de.debian.org/debian/ jessie main contrib non-free
deb http://ftp.informatik.uni-frankfurt.de/debian/ unstable main contrib non-free

その中には/etc/apt/sources.list.d次のファイルがあります。

  • apt-build.list

    # deb file:/var/cache/apt-build/repository/ apt-build main
    
  • dropbox.list

    deb [arch=i386,amd64] http://linux.dropbox.com/debian wheezy main
    
  • google-chrome.list

    ###
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    deb http://dl.google.com/linux/chrome/deb/ stable main
    

ベストアンサー1

その他のバグレポート&ここ別の画像に切り替えて更新し、もう一度切り替えるように求められます。サーバーが部分ダウンロードをサポートしていませんか?

  • 部分的にダウンロードされたファイルを削除すると/var/lib/apt/lists/partial/問題が解決し、再度更新を試みる必要があります。

明らかに、新しいアップストリームバージョンで変更されるaptまたはdpkgにいくつかの変更が適用されました。

aptそれ以外の場合は、圧縮ファイルを処理できない以前のバージョン(または欠陥がある)を使用しているようです。システムが古くなったか、長い間更新されていませんか?最新バージョンがある可能性があります。aptリポジトリを手動で参照して(stableまたはstable-updatesディストリビューションの基本/サポートエントリに固執することが最良の結果を提供する必要がある)、更新されたapt.debをダウンロードしてを使用してインストールできますdpkgapt自分ではできません。

または、最近更新した場合は、昨日aptまたは先週利用可能であった以前のバージョンにダウングレードしても機能します。

おすすめ記事