Cannot add PPA - "user or team does not exist"
When I run this command:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
I get the following error:
Cannot add PPA: 'ppa:~webupd8team/ubuntu/sublime-text-3'.
ERROR: '~webupd8team' user or team does not exist
My proxy settings are working properly
what's the solution?
Solution 1:
I found a working solution at add-apt-repository derrière un proxy d'entreprise (in French).
To summarize it, you have to export the env variables HTTP(S)_PROXY
, lowercase and uppercase in your term.
Then execute:
sudo -E add-apt-repository ppa:...
The -E
option will preserve the env vars defined above, and will enable the proxy use.
Solution 2:
Running add-apt-repository without internet connection really does produce the same error message as in the question. One might consider the error message being incorrect or confusing like this as a bug though.
Adding the corresponding repositories is not enough unless you have an internet connection.
I fixed this by making an internet connection because the repositories had already been added.
Check this with: $ ping www.google.com
Solution 3:
In my case it was my company's man-in-the-middle fake SSL certificate that caused this misleading error. If you are on corporate internet, you may need to install your company's SSL cert at /usr/local/share/ca-certificates/yourcompany.crt
and run sudo apt-get update && sudo apt-get install ca-certificates -y && update-ca-certificates
Solution 4:
Also, consider your VPN activity when using WSL as in general VPN's and WSL (Ubuntu) don't mix well. So if you are receiving these errors with a VPN connected, try disabling your VPN and running the command again. This is an odd fix that should be attempted if the above mentioned solutions aren't working for you.
More info here: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting under the Bash loses network connectivity once connected to a VPN