Ubuntu – 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?

Best Answer

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.