Ubuntu add repo app-key fails

Solution 1:

Just ran into a very simalar problem and by deleting the problem key in /etc/apt/trusted.gpg.d/{Problem-Key}.asc I was able to solve the issue!

Hope this helps!

Solution 2:

This is because GPG parses keyring paths containing colons as URLs (yeah, I don't know about that either).

Try the following:

mv /etc/apt/trusted.gpg.d/home:hawkeye116477:waterfox.asc /etc/apt/trusted.gpg.d/home_hawkeye116477_waterfox.asc