I resolved the issue.
It was about the lib dependencies. Every lib need other lib that need other lib.
I installed a lot and it finally worked.
You sir, are an asshole.
I installed libcurl4-nss-dev to fix this.
I arrived here from a google search of the error.
I would have punched you if I was standing next to you and read this "I installed a lot and it finally worked." Bullshit
Just type history and post the whole output if you don't know what worked. Do something.
It was long ago, I don't remember.
I've been using google to find dependencies.
Every time you can choose between a lib and a lib-dev, chose the dev one.