Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have scoured the blogs finding a solution for what seems to be a common problem: I cannot reach any servers. My internet works and I have no proxies. Running "apt-get update" I see it stuck at 0% waiting for headers for a long time, then advances a bit with the following output:

# apt-get update
0% [Waiting for headers][Waiting for headers][Waiting for headers]
Ign http://archive.ubuntu.com precise InRelease                                                    
Ign http://dl.google.com stable InRelease                                                          
Ign http://archive.canonical.com precise InRelease                                                 
Ign http://extras.ubuntu.com precise InRelease                                                     
Ign http://ppa.launchpad.net precise InRelease                                                     
Ign http://security.ubuntu.com hardy-security InRelease                                            
18% [Waiting for headers]

It was stuck at 0% for over ten minutes. My connection speed is 30Mbps. I run synaptic and do a "reload" and then cancel to see where it fails and I get:

Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/InRelease  
Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/InRelease  
Failed to fetch http://security.ubuntu.com/ubuntu/dists/hardy-security/InRelease  
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease  
Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  
Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/InRelease  
Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/precise/InRelease  
Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/InRelease  
Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/precise/InRelease  

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

It seems like EVERY repository fails. Out of curiosity, I cut and pasted some of the URLs listed here and got a 404 error, though if I remove "InRelease" from the path, I get a directory listing that does not contain "InRelease" as an entry.

Where are these URLs coming from and are they correct? Any ideas why the fetches are failing? I'm running 12.04. BTW, it used to work until about two months ago but I don't know what changed.

share|improve this question
2  
Please post the content of /etc/apt/sources.list (for a start) –  guntbert Jan 11 '13 at 21:28
    
You have a mixed hardy with precise. Not a good idea. –  McNisse Jan 11 '13 at 21:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.