How to remove illegal apt sources

by Yves   Last Updated August 14, 2018 10:02 AM

My system is Ubuntu 16.04.3 on an arm64 machine. I share this system with my colleagues.

Now someone must do some change because when I execute sudo apt update, I always get the error as below:

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/xenial-security/main/binary-i386/Packages  404  Not Found
E: Failed to fetch http://us.ports.ubuntu.com/ubuntu-ports/dists/xenial/main/binary-i386/Packages  404  Not Found
E: Failed to fetch http://us.ports.ubuntu.com/ubuntu-ports/dists/xenial-updates/main/binary-i386/Packages  404  Not Found
E: Failed to fetch http://us.ports.ubuntu.com/ubuntu-ports/dists/xenial-proposed/main/binary-i386/Packages  404  Not Found
E: Failed to fetch http://us.ports.ubuntu.com/ubuntu-ports/dists/xenial-backports/main/binary-i386/Packages  404  Not Found

I've remove and recreate a new /etc/apt/sources.list with the us arm64 sources and sudo rm /etc/apt/sources.list.d/* but sudo apt update gave me the same error. Also I sudo rm -rf /var/lib/apt/lists/* but nothing changed.

Here is my new /etc/apt/sources.list:

deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial main restricted
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-proposed main restricted
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial universe
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-updates universe
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-proposed universe
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial multiverse
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-updates multiverse
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-proposed multiverse
deb http://us.ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports xenial-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports xenial-security universe
deb http://ports.ubuntu.com/ubuntu-ports xenial-security multiverse


Related Questions


KDE "Authentication Errors"

Updated August 08, 2015 22:00 PM

Muon Discover fails to find Wine

Updated September 12, 2015 10:01 AM

How to install Texlive on Kubuntu 15.04 (tar.gz)

Updated September 29, 2015 08:01 AM