I too got the same error, when I did this behind a proxy. But after I exported the following from a terminal and re-tried the same command, the problem got resolved:
export http_proxy="http://username:password@proxy_ip_addr"password@proxy_ip_addr:port/"
export https_proxy="https://username:password@proxy_ip_addr"password@proxy_ip_addr:port/"