web-dev-qa-db-ja.com

Ubuntu Mate(Raspberry Pi)のapt-updateのエラー

Sudo apt updateまたはSudo apt-get updateを最後に使用しようとすると、これらのエラーがすべて表示され、終了します。

Ign:48 http://ports.ubuntu.com/ubuntu-ports xenial/multiverse i386 Packages                                                                                                                             
Fetched 600 kB in 14s (40.8 kB/s)                                                                                                                                                                       
Reading package lists... Done
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target DEP-11 (main/dep11/Components-armhf.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/xenial/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.150 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target DEP-11 (main/dep11/Components-armhf.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/official-package-repositories.list:7
battledash@battledash-desktop:~$ 

編集:これはUbuntu 16.04です

1
Dash

WWarningおよびEforError

  • Target Packages is configured multiple times...のようなWarningsの場合:

    この回答 David Foersterによる重複エントリの削除に役立ちます。

  • Errorsの場合:

    1. ファイル/etc/apt/sources.list.d/official-package-repositories.listには、更新を一切提供しない役に立たない行がありました。コメントアウトは役に立ちました。
    2. エラー....i386は、間違った、つまり32ビットアーキテクチャの追加が原因でした。を使用して削除する

      Sudo dpkg --remove-architecture i386
      

もう一度更新してください。

2
Kulfy