16.04 无法获取某些档案

16.04 无法获取某些档案

我已尝试一切方法来修复该错误E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我曾尝试清理 apt-get 系统,使用install -f,显然使用fix-missingupdateupgrade

我的输出sudo apt-get install qtbase5-dev

E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/q/qtbase-   opensource-src/libqt5xml5_5.5.1+dfsg-16ubuntu7.5_amd64.deb  404  Not Found [IP: 50.7.82.37 80]

E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/q/qtbase-opensource-src/qtbase5-dev-tools_5.5.1+dfsg-16ubuntu7.5_amd64.deb  404  Not Found [IP: 50.7.82.37 80]

E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/q/qtbase-opensource-src/qtbase5-dev_5.5.1+dfsg-16ubuntu7.5_amd64.deb  404  Not Found [IP: 50.7.82.37 80]

E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/q/qtbase-opensource-src/libqt5opengl5-dev_5.5.1+dfsg-16ubuntu7.5_amd64.deb  404  Not Found [IP: 50.7.82.37 80]

E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/q/qtbase-opensource-src/libqt5sql5-sqlite_5.5.1+dfsg-16ubuntu7.5_amd64.deb  404  Not Found [IP: 50.7.82.37 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

输出update

Fetched 109 kB in 3s (34,9 kB/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://linux.teamviewer.com/deb stable InRelease' doesn't support architecture 'arm64'
E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 50.7.82.35 80]
E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 50.7.82.35 80]
E: Failed to fetch http://es.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 50.7.82.35 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.26 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

我已经尝试了在其他问题和其他论坛上看到的所有方法,但我真的不知道如何解决它。

你有什么主意吗?

先感谢您!

编辑

添加了一些终端输出

~: dpkg --print-architecture
amd64

~: dpkg --print-foreign-architectures
i386
arm64

答案1

sudo dpkg  --remove-architecture arm64

如果你的系统上有交叉编译工具,你将会得到类似的错误

Architektur »arm64«, is in use, can not be removed

概述

dpkg -l | awk '/:arm64/{ print $2 }' 

如果是这样,你可以删除它们sudo apt-get purge $(dpkg -l | awk '/:arm64/{ print $2 }')并删除架构sudo dpkg --remove-architecture arm64

相关内容