Ubuntu Mate(Raspberry pi)中 apt-update 中的错误

Ubuntu Mate(Raspberry pi)中 apt-update 中的错误

当我尝试使用sudo apt updatesudo 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

西代表警告为了错误

  • 为了警告喜欢Target Packages is configured multiple times...

    这个答案David Foerster 的帮助将有助于删除重复的条目。

  • 为了错误

    1. 该文件/etc/apt/sources.list.d/official-package-repositories.list包含无用的行,不提供任何更新。注释掉这些行会有所帮助。
    2. 错误....i386是由于添加了错误的 32 位架构。使用以下方法删除它:

      sudo dpkg --remove-architecture i386
      

尝试再次更新。

相关内容