The http_proxy environment variable has to be set to enable proxy, so that curl command can download the package.

It can be set in ~/.bashrc

vi ~/.bas