sudo apt-get update
sometimes becomes stucked:
...
99% [Waiting for headers]
This seems to be a common problem and can have several reasons. For example, on one machine, it was caused because I used a bad proxy server configuration.
Is there a way to systematically analyze the problem? It looked at the man apt-get
but could not find any option that provides more information to isolate the problem. Are there any tools besides apt-get
that I can use to get more insights?
Better still, just do:
I was able to fix it.
http://debian.sur5r.net/i3/
(quantal, universe) did not respond. After disabling it,apt-get update
succeeds.Tips for the next one that runs into this problem:
synaptic
and disable sources untilReload
no longer hangs. Especially, 3rd party sources seem to be candidates.synaptic
is great for diagnostics. WhenReload
hangs and you abort it, it prints out the current repository. In my case, it was exactly the bad one: