web-dev-qa-db-fra.com

Erreurs dans apt-update dans Ubuntu Mate (Raspberry Pi)

Lorsque j'essaie d'utiliser Sudo apt update ou Sudo apt-get update à la fin, toutes ces erreurs se produisent et il se termine:

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:~$ 

Edit: Ceci est Ubuntu 16.04

1
Dash

W signifie Avertissement et E pour Erreur .

  • Pour Avertissements comme Target Packages is configured multiple times...:

    Cette réponse par David Foerster aidera à supprimer les entrées en double.

  • Pour Erreurs :

    1. Le fichier /etc/apt/sources.list.d/official-package-repositories.list avait des lignes inutiles qui ne fournissent aucune sorte de mise à jour. Commenter cela a aidé.
    2. L’erreur ....i386 était due à l’ajout d’une architecture erronée, c’est-à-dire 32 bits. Supprimer cela en utilisant

      Sudo dpkg --remove-architecture i386
      

Essayez de mettre à jour à nouveau.

2
Kulfy