Export http_proxy prior to sudo command.