Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 27166  / 3 Years ago, tue, may 11, 2021, 12:23:34

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?


More From » apt

 Answers
4

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:




  1. Start synaptic and disable sources until Reload no longer hangs. Especially, 3rd party sources seem to be candidates.

  2. Reactive your sources until you hit the one that causes problems.



synaptic is great for diagnostics. When Reload hangs and you abort it, it prints out the current repository. In my case, it was exactly the bad one:



Failed to fetch http://debian.sur5r.net/i3/dists/quantal/InRelease  
Some index files failed to download. They have been ignored, or old ones used instead.

[#33435] Wednesday, May 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
restlerfin

Total Points: 347
Total Questions: 112
Total Answers: 108

Location: Ukraine
Member since Wed, Dec 16, 2020
3 Years ago
;