Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E: Some index files failed to download. They have been ignored, or old ones used instead [closed]

Tags:

linux

ubuntu

I'm using Ubuntu 14.04. I have tried to modify the server in software and updates and failed. So, when I try to make update with sudo apt-get update I got this error:

W: Failed to fetch http://ppa.launchpad.net/ripps818/coreavc/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/universe/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/restricted/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/multiverse/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/main/binary-i386/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/universe/binary-i386/Packages  404  Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/restricted/binary-i386/Packages  404  Not Found
W: Failed to fetch   http://ubuntu.mirror.tn/dists/trusty/multiverse/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

any help please ?

like image 356
souha Avatar asked Nov 09 '16 10:11

souha


People also ask

How do you fix some index files failed to download they have been ignored or old ones used instead in Kali Linux?

How do you fix some index files failed to download they have been ignored or old ones used instead in Kali Linux? Step 1: Modify your sources. list to latest repositories Provide by kali. Open terminal and type “apt-get install gedit” without quotes # if gedit editor is not installed “gedit /etc/apt/sources.

How do you resolve some index files failed to download they have been ignored or old ones used instead?

Delete the index file. Let's delete it. Just mv it to be safe. Again, use the apt command to update.


1 Answers

Try this in the following order:

sudo su 
cd /var/lib/apt/lists/
rm -fr *
cd /etc/apt/sources.list.d/
rm -fr *
cd /etc/apt
sudo cp sources.list sources.list.old
sudo cp sources.list sources.list.tmp
sed 's/ubuntuarchive.hnsdc.com/us.archive.ubuntu.com/' sources.list.tmp | sudo tee sources.list
sudo rm sources.list.tmp*
apt-get clean
apt-get update
like image 129
Umar Avatar answered Oct 06 '22 07:10

Umar