According to wget manual, exit code 4 means "network failure".
GNU Wget 1.16 Manual: Exit Status
I don't see that on either the official image or the one I've build on my own, so I guess that indeed may be a network problem. Do you have a proxy or something? Wre you able to download the same file using wget directly?