Apt-get update fails with 404 error [IP: 91.189.88.150 80] in Ubuntu MATE 16.04

When I try to run sudo apt-get update, I get a huge amount of 404 errors for the same IP address, listed above.

https://pastebin.com/gJZKMW1F

Any ideas as to what I can do?

Just a cursory look and I wonder, why should there be ‘I386’ repos on Raspberry Pi?

That’s what I noticed as well. It doesn’t make much sense, that’s for sure.

Have you tried changing repositories?

From the Control Center open Software & Updates and in the Ubuntu Software tab select a new repository from the drop down menu.

Disclaimer:

I don't currently have UM 16.04 installed on my Pi to verify this is the same as the desktop version, but I'm assuming that it would be.

Is there anyway I could do that through terminal? I don’t have access to a screen an have to connect through SSH from my laptop

Yes, by editing your sources.list.

sudo nano /etc/apt/sources.list

Please look at the following link. It’s seems to address the problem you are having.

https://askubuntu.com/questions/705895/how-to-fix-a-failed-to-fetch-binary-armhf-packages-error-during-apt-get-update

1 Like

GNU nano 2.5.3 File: sources.list Modified

deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse

deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse
deb-src http://ports.ubuntu.com/ xenial-security main restricted universe multiverse

deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse

That’s my sources.list file. I don’t see anything wrong, but I don’t have a very good eye for small issues.

Looking at your pastebin, the cause of the errors is that binary-i386/Packages does not exist on http://ports.ubuntu.com. Further if it did exist, it has not part in the armhf architecture of your raspberrypi.

E: Failed to fetch http://ports.ubuntu.com/dists/xenial/main/binary-i386/Packages 404 Not Found [IP: 91.189.88.150 80]

I see nothing out of the ordinary in your sources.list file.

Could this possibly be a fault on the server side?

If you look at http://ports.ubuntu.com/dists/xenial/Release

Line 7 reads

Architectures: amd64 arm64 armhf i386 powerpc ppc64el s390x

And there are numerous references to binary-i386/Packages beginning with line 39

6ee30a76a53b6364cd86707022510e62 7187961 main/binary-i386/Packages

When clearly /binary-i386/Packages does not exist on http://ports.ubuntu.com/dists/xenial/main

But if this is a server side issue, I am curious as to why everyone is not having this same problem.

I would suggest messaging @Wimpy or @lah7 for help on this issue. They would understand the server side of things much better than I do.

How do I message one of them?

Nevermind, I had to unlock it first