Welcome to the new Linux Foundation Forum!

Lab 1 Error: curl: (1) Protocol "​https" not supported or disabled in libcurl

In Lab 1:

When i try to execute the following command it is giving the error

command: curl -fsSL ​https://download.docker.com/linux/ubuntu/gpg​ | sudo apt-key add -

Error: Error: curl: (1) Protocol "​https" not supported or disabled in libcurl

could you please let me know the reason, i am using Oracle virtual box. I wasted lot of time in web but did not get the correct option

Comments

  • kmyattkmyatt Posts: 39

    The command you entered above is correct, so you aren't running it wrong. It might be a problem with the installation of curl or another dependency. I recommend you uninstall and reinstall curl, and afterward any other dependency you previously installed. Then it should work. Best of luck

  • maniankaramaniankara Posts: 11

    @kmyatt and @Amarnath.Aitha I too faced the same problem with AWS ubuntu 18.04. I had to use wget (wget -O- ) instead :neutral:

  • kmyattkmyatt Posts: 39

    @Amarnath.Aitha @maniankara

    Hmmm That's odd. Docker should support that download method using curl. The official documentation even recommends using curl.

    It's most likely an issue with ssl... go ahead and uninstall curl, then run

    sudo apt install libssl-dev
    sudo apt install curl

    That should fix it.

Sign In or Register to comment.