apt-get update stuck on "Waiting for Headers"
Posted
by
crasic
on Ask Ubuntu
See other posts from Ask Ubuntu
or by crasic
Published on 2011-01-03T05:40:52Z
Indexed on
2011/01/03
5:59 UTC
Read the original article
Hit count: 268
I'm setting up a Maverick server on a spare PC. The install completes fine and the system boots up into the shell. However, when I try to do a apt-get update
, apt hangs on almost every entry with the message 99% [Waiting for headers]
sometimes a message of 96 b/s
appears on the far right. The actual percent that it claims also varies.
Searching around online gave a potential solution by using the option Acquire::http::Pipeline-Depth="0"
this somewhat alleviates the problem, i.e. it stalls on every other entry with the same message as above.
If you wait it out (the whole update took about 4 hours), the update still fails as a good portion of the hits show a "unable to connect" or similar message, despite the fact that I can ping the server from the pc just fine.
The problem is also unrelated to the mirror used since I've tried about a dozen mirrors with no success, I've even tried commenting out everything but the main
entry in sources.list and it still refuses to update.
The network connection is fine since I can ping and wget (apt won't let me install lynx until I run a successful update) just fine. I've also reinstalled the distro with no luck.
The only thing weird about the setup is that the PC is connecting to the internet through my windows laptop with ICS configured properly, but as I've said before, the network connection is fine.
© Ask Ubuntu or respective owner