Thursday, March 8, 2012

Error: Failed to fetch in Linux


Error:

Failed to fetch

Example:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.170 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.170 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric-backports/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.170 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.170 80]

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


Solution:

Goto --> Setting --> Software Resources --> Under Ubuntu Software tab ---> Choose a Download Server --> Click on Select Best Server --> Wait for system to search for a best server  --> Click ok.

Check this in terminal:


sudo apt-get update


Done!!!

No comments:

Post a Comment