Trying to do sudo apt-get update
for ubuntu 20.04 but it shows an error like this:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal/main/binary-amd64/Packages 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/main/binary-amd64/Packages 404 Not Found [IP: 185.125.190.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
I have attached my screenshot of the error. Can anyone please help with it?
My sources.list screenshot enter image description here
/etc/apt => enter image description here
Output of dpkg --print-foreign-architectures enter image description here
uname -m
)? You seem to have a mix of "amd64" and "arm64" in your sources.list – steeldriver Sep 04 '22 at 12:53http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/main/binary-amd64/Packages
(apparently trying to pull amd64 packages from the ports repo) andhttp://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages
(apparently trying to pull arm64 packages from the regular repo)? – steeldriver Sep 04 '22 at 13:09/etc/apt/sources.list
and any in/etc/apt/sources.list.d
that you may have modified) maybe someone will be able to offer some suggestions. As a last resort, see How do I restore the default repositories? – steeldriver Sep 04 '22 at 16:29#
) all theubuntu-ports
entries (i.e. the first 8 entries) and then seeing ifsudo apt update
runs without errors – steeldriver Sep 05 '22 at 12:47/etc/apt/sources.list.d/
for other.list
files? I don't see anything in the file you posted that would result in those errors. Look for lines possibly containing[arch=arm64]
. – steeldriver Sep 05 '22 at 13:15dpkg --print-foreign-architectures
– steeldriver Sep 05 '22 at 13:47sudo dpkg --remove-architecture arm64
– steeldriver Sep 05 '22 at 13:59