4

I am having problems when I run: sudo apt-get update

I get a few 404 not found errors, as seen in this picture and the following text:

E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

I'm not sure what is causing this, I tried changing the update server, and I tried using a VPN to ensure my IP hasn't been blacklisted. Neither of those worked. Anyone know how to fix this? I am using Ubuntu 18.04

I tried restoring the default repositories, but that didn't fix the problem. Below is my /etc/apt/sources.list:

# deb http://security.ubuntu.com/ubuntu/ bionic-security main
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://security.ubuntu.com/ubuntu/ bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe

If I comment out everything in /etc/apt/sources.list, then I do not get any errors, but it does not check for Ubuntu updates as seen below:

$ sudo apt-get update
Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease
Hit:3 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu bionic InRelease        
Reading package lists... Done

I also tried leaving 1 line uncommented at a time, to see if any of them would work, but they all caused errors.

I do not believe IPv6 is the issue, as I was able to run ping6:

$ ping6 2001:67c:1560:8001::14
PING 2001:67c:1560:8001::14(2001:67c:1560:8001::14) 56 data bytes
64 bytes from 2001:67c:1560:8001::14: icmp_seq=1 ttl=54 time=90.4 ms
64 bytes from 2001:67c:1560:8001::14: icmp_seq=2 ttl=54 time=89.8 ms
64 bytes from 2001:67c:1560:8001::14: icmp_seq=3 ttl=54 time=86.7 ms
64 bytes from 2001:67c:1560:8001::14: icmp_seq=4 ttl=54 time=86.2 ms
64 bytes from 2001:67c:1560:8001::14: icmp_seq=5 ttl=54 time=95.2 ms

Running dpkg --print-foreign-architectures returned:

i386
armhf

I tried using ports.ubuntu.com by adding deb http://ports.ubuntu.com/ubuntu-ports bionic main to my /etc/apt/sources.list, as shown in this post, but I still got the same errors.

I am ultimately trying to install a Nextcloud server, but I'm unable to install MariaDB for it, and I think this update issue the cause.

1 Answers1

1

SOLUTION: I ran sudo dpkg --remove-architecture armhf and that solved the problem. When I ran sudo apt-get update it no longer tried to get binary-armhf packages. I found this solution in this post.