Joey Hess wrote: <cut>
fetch() { url="${protocol}://${hostname}${directory}/$1" iters=0 while [ $iters -lt 3 ]; do if [ ! -e "$2" ]; then wget -q "$url" -O "$2" return $? else# busybox wget can sometimes become confused while # resuming, so if it fails, restartif wget -c -q "$url" -O "$2"; then return 0 else wget -q "$url" -O "$2" return $? fi fi iters=$(($iters + 1)) done } You might try running through the wget commands yourself at the console and checking the return codes and downloaded files to debug it further.
Thanks Joey, seeing the code did the trick.The base-installer_1.13.4_i386.udeb download was the interesting part when running the process semi-manually. When using FTP the md5sum is correct, when using HTTP it isn't. Why FTP suddenly started working is an interesting question, but the problem has been resolved for now.
Now to find out why Apache behaves differently on two identical servers, and only on one particular file of more than 35.000, but that's an entirely different issue :-)
/Thomas