GNU/Linux >> Linux の 問題 >  >> Ubuntu

更新中に「フェッチに失敗しました」?

最近ubuntu12.10からアップデートしようとしていますが、「Failedtofetch」エラーが発生し続けます。

W: Failed to fetch
http://security.ubuntu.com/ubuntu/dists/quantal-security/Release 
Unable to find expected entry 'independent/binary-amd64/Packages' in
Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/quantal/Release  Unable to find
expected entry 'independent/source/Sources' in Release file (Wrong
sources.list entry or malformed file)

W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/quantal-updates/Release  Unable
to find expected entry 'independent/binary-amd64/Packages' in Release
file (Wrong sources.list entry or malformed file)

W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/quantal-backports/Release 
Unable to find expected entry 'independent/binary-amd64/Packages' in
Release file (Wrong sources.list entry or malformed file)

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

サーバーを変更し、ソースリストを/var/lib/apt/lists/から削除しました いくつかの答えが言うように、それでも。これは本当に迷惑です。

承認された回答:

メッセージ

(間違ったsources.listエントリまたは不正な形式のファイル)

sources.listのいずれかのエントリを意味します ファイルが間違っているか、行の形式が正しくありません。

Webを検索したところ、この古いバグが見つかりました。正確には古いものではありませんが、期限切れ

解決策(回避策はより良い言葉です)は、sources.listを調べることです。 独立という単語をファイルして削除します 行から。試してみてください。

すべてを表示するための優れた詳細なコマンド あなたのsources.list エントリは次のとおりです:

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

Ubuntu
  1. 削除されたファイルを回復しますか?

  2. 圧縮 tar 内の単一ファイルの更新

  3. cer から pem への変換中の OpenSSL エンコーディング エラー

  1. ソースが安全に更新されている間にRsyncを使用していますか?

  2. ログ ファイル エントリで電子メール アラートを送信しますか?

  3. ubuntu 12.04でファイルアクセス時間が更新されない

  1. パイプでティーを使用しているときにstderrをファイルに書き込むにはどうすればよいですか?

  2. 使用中のファイルの切り捨て (Linux)

  3. 使用中のファイルを移動 -- どのように機能するのか?