Many server administrators want their server to be used only by humans and not by retrieval programs like wget
. One way to block such programs is to use log analysis. Log analysis identifies retrieval programs by looking for statistically significant similarities among the requests, often through timing.
Whenever I try to use wget to download packages through a shell script (one similar to those created by synaptic
, mostly they are actually created by synaptic
), only a few packages are downloaded and most of the packages fail to download due to connection refusal.
So I strongly think that the most probable reason why the connection is refused is that Ubuntu servers use log analysis to block programs.
Do Ubuntu servers use log analysis to block (package retrieval) programs?
EDIT:
I executed some scripts which contained packages of small size (i.e., they would get downloaded in less time). Such scripts work properly as expected. The error comes up with packages that are large in size (consequently they take more time).
<countrycode>.archive.ubuntu.com
redirects you to a local mirror, but I don't know if it does load balancing or just a random choice. You can always pick a direct URL from the link above to a local, up-to-date server. See also http://askubuntu.com/questions/39922/how-do-you-select-the-fastest-mirror-from-the-command-line – chronitis Feb 13 '14 at 12:35wget [options] [link]
command? Should I ask another question for it? – Registered User Feb 13 '14 at 13:10