APT – Errors When Running apt-get update

13.04aptupdates

W: Failed to fetch http://dl.google.com/linux/deb/dists/raring/Release.gpg  Something wicked happened resolving 'dl.google.com:http' (-11 - System error)

W: Failed to fetch http://packages.medibuntu.org/dists/raring/Release.gpg  Something wicked happened resolving 'packages.medibuntu.org:http' (-11 - System error)

W: Failed to fetch http://repository.spotify.com/dists/raring/non-free/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://repository.spotify.com/dists/raring/non-free/binary-i386/Packages  404  Not Found

W: Failed to fetch http://dl.google.com/linux/deb/dists/raring/non-free/binary-amd64/Packages  404  Not Found [IP: 173.194.46.69 80]

W: Failed to fetch http://dl.google.com/linux/deb/dists/raring/main/binary-amd64/Packages  404  Not Found [IP: 173.194.46.69 80]

W: Failed to fetch http://dl.google.com/linux/deb/dists/raring/non-free/binary-i386/Packages  404  Not Found [IP: 173.194.46.69 80]

W: Failed to fetch http://dl.google.com/linux/deb/dists/raring/main/binary-i386/Packages  404  Not Found [IP: 173.194.46.69 80]

W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/raring/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/raring/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found

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

How can I fix this? It happens every time i run sudo apt-get update?

Best Answer

Most of your PPA are outdated or doesn't exist anymore. For example the last one "http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/raring/main/binary-i386/Packages" should be replaced with "http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/quantal/main/binary-i386/Packages".

Look at your /etc/sources.list (or the files in /etc/sources.list.d) and remove or fix those lines that cause the error.

UPDATE:

The answer here should help.