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

Some index files failed to download. They were ignored, or replaced with old ones.

When you are using

sudo apt-get update

fail and show

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

You can try

sudo su
vim /etc/resolv.conf

add

nameserver 8.8.8.8

and retry

sudo apt-get update

It will work
good luck!

Read More: