I am trying to add a repository (datastax) to my sources. This repository ask you to add your username and password, and also warn that you will have to urlencode special characters.
So I added:
deb https://firstname.lastname@example.org:p@email@example.com/enterprise stable main
apt-get update say:
W: Failed to fetch https://firstname.lastname@example.org/enterprise/dists/stable/main/binary-amd64/Packages Could not resolve host: email@example.com
At this point, I just changed
deb https://user%40mail.com:firstname.lastname@example.org/enterprise stable main
But no dice, the error stay the exact same.
Before changing my password to remove any special character and hoping the error will not move to not finding
mail.com:email@example.com, could someone explain what I failed to understand in how apt-get work with special character and password protected repo?