Alright, I've been having this issue for a while now, and I've done a ton of googling for it but nothing has helped fix my issue yet. I've tried a bunch of things, some of them including, making sure my time is correctly set, and even trying different sources but nothing has worked.
Now, basically I'm trying to do ANYTHING with apt-get. Updates, installs, everything is extremely slow, it all hangs on [Waiting for Headers]. So I ran
sudo strace apt-get update
Now, this works for some mirrors, but others the script hangs and loops on this type of output
select(8, [5 6 7], [], NULL, {0, 500000}) = 0 (Timeout)
gettimeofday({1303320316, 668899}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
99% [Waiting for headers]) = 26aders]", 26
select(8, [5 6 7], [], NULL, {0, 500000}) = 0 (Timeout)
gettimeofday({1303320317, 170040}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
99% [Waiting for headers]) = 26aders]", 26
select(8, [5 6 7], [], NULL, {0, 500000}) = 0 (Timeout)
gettimeofday({1303320317, 671178}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
99% [Waiting for headers]) = 26aders]", 26
select(8, [5 6 7], [], NULL, {0, 500000}) = 0 (Timeout)
gettimeofday({1303320318, 172636}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
99% [Waiting for headers]) = 26aders]", 26
Any help on this would be appreciated.
EDIT: As requested, I've uploaded a copy of my tcpdump while I was attempting to run the apt-get update. Here is the link http://pastebin.com/NvbgNxxV
EDIT: Here is a pcap file of my tcpdump output. It appears there are some files that apt-get is trying to get like files in the directory ubuntu/dists/maverick-updates/main/i18n/ .. no idea where i18n comes from, but I couldn't retrieve them from browsing the repos either.
tcpdump tcp port 80. Also if you could output a pcap file instead of text (with the -w option) and upload it somewhere, we can load the file into wireshark and follow tcp streams easily, etc.tcpdump -s 1500 -w myfile.pcap tcp port 80should do the trick. – Kyle Smith Apr 20 '11 at 22:31