web-dev-qa-db-ja.com

W:コマンドapt-getupdateの実行時に403Forbiddenエラーをフェッチできませんでした

オセアニア地域を旅行していたユーザーからラップトップを渡され、コマンドapt-get updateを実行しようとしましたが、メッセージが返されました

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/multiverse/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/main/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/main/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/source/Sources  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/main/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/binary-i386/Packages  403  Forbidden

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages  403  Forbidden

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

インターネットに直接接続してコマンドを実行しましたが、プロキシを経由しませんでした。 URLにアクセスしようとすると、「禁止」エラーが発生します。数日前は問題ありませんでした。この問題を解決できた唯一の方法は、たとえばhttp://nz.archive.ubuntu.com/ubuntu/ precise main restrictedファイルのURLhttp://archive.ubuntu.com/ubuntu/ precise main restrictedsources.listに変更することでした。

なぜ突然このようなエラーが発生するのでしょうか。

ラップトップはUbuntu12.04LTSを実行しています

1
PeanutsMonkey

サーバーが原因でこのエラーが発生しています。そのサーバーで何かが変更され、「packages.gz」および「packages.bz2」としてのみ「packages」ファイルが提供されるようになりました。それは完全にあなたのせいではありません。
ただし、メインのarchive.ubuntu.comではなく、他の国のサーバーに戻すことをお勧めします。このサーバーは制限されており、フルスピードを体験することはできません。

1
Ernestas

はい、 nz.archive.ubuntu.comが何らかの理由で403Forbiddenを返しています。たぶん彼らのサーバーに設定ミスがあります。たぶん、あなたはブラックリストに載っているサブネットワークにいます。そのURLをブラウザで開いてみてください。このミラーサイトの所有者に連絡して、この問題を報告することもできます。そして、あなたは別の鏡を使うことができます。 Ubuntu用にそれらの多くがあります。

0
kolen