That's a network issue. Check that you dont have a http proxy environment variable setup. And check that you can reach
https://download.calibre-ebook.com using a browser. If you can, then you can always follow the manual download and install instructions on the download page.