PDA

View Full Version : Apt-get stalls on cable cable connection



vesselinpeev
05-01-2003, 12:21 PM
I'm new to Knoppix and Debian. Do you have any idea why apt-get stalls randomly, after accessing a certain amount of mirrors when doing "apt-get update"? The only way out is to Ctrl-C and then repeat, but it happens again, so "apt-get update" is practically unusable for me.
I did a thorough web search on combinations of apt-get, TCP, stall, stalls, stalling, etc., but nothing really came out, except that certain cable internet providers seem to have "broken software".
My IP is received via DHCP.
The interesting thing is that my internet access using other applications under Knoppix has no problems.
Aso, apt-get install [someapp] works without problems. Probably the stalling problems stem from the fact that doing "apt-get update" involves making too many outgoing connections in a certain way or in a short time. Perhaps someone would have a clue? What configuration options could potentially influence this positively?

Stephen
05-01-2003, 06:03 PM
When you do the update is it the same source where you are getting the the programs from that stall? You can always change the sources you get the programs from in the /etc/apt/sources.list to a mirror closer to your actual location and see if that helps. Unofficial (http://www.apt-get.org/main.php) list of apt sources.

vesselinpeev
05-01-2003, 06:09 PM
No, the source is "random". Yes, I've tried changing /etc/apt/sources.list, even used apt-spy to find the supposedly fastest and more reliable mirrors, but nothing really changes.

Stephen
05-01-2003, 06:22 PM
That's really strange it sounds like you have one sucky ISP. I've had a couple of problems with broken mirrors and slow sites but apt works fine with both static and dhcp with my ISP. This probably is not the way you want to do it but you can always download the packages individually and use dpkg to install but I would imagine you want apt to work properly. Have you contacted your ISP to see if they somehow limit the connections that can be made from your computer?

vesselinpeev
05-01-2003, 06:29 PM
Thanks. No, I haven't contacted them yet, but I guess it would be in order. And manually downloading packages would require too much hassle sometimes :((
But the strange problem is, sometimes apt-get runs for a long time before it stalls, say 20 mins. Sometimes -- and still contacting the same amount of servers -- it stalls with 1 minute. There is no apparent cause or time of day when it works or not.
I'll see what I can do, at least now I am more sure there isn't anything absolutely obvious that could help.
Best regards,
Vesselin.

rickenbacherus
05-02-2003, 06:06 PM
Have you tried commenting out all but one server in your sources list and going thru them one by one to see if there is maybe a certain server that your machine/isp doesn't like? Have you installed Linneighborhood or are you using Samba? You have not adjusted the MTU recently have you (standard is usually 1500). It sounds like perhaps you're dropping packets. (just a guess).

imseppl
09-29-2003, 05:32 AM
I fixed the problem by exchanging ftp.de.debian.org in the etc/apt/sources.list file with the following:

ftp2.de.debian.org

The reason for the stall was that ftp.de.debian.org was not a functioning server (at least when I attempted to access it from my computer!)