Easy and Simple Solution

Tuesday, November 22, 2016

failed to fetch ubuntu apt-get update

Sometime,While installing any package or updating the ubuntu system, you might receive the error like below
Error:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.88.152 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.88.152 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.88.152 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.88.152 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.88.152 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.
Solution:
Change the url in source.list file using sed command.
sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
Now try to update ubuntu.
apt-get update
Real Time Analytics