Also remember to add the username, password and proxy details to the http_proxy and https_proxy environment variables.
http_proxy
https_proxy