Ubuntu: add-apt-repository uses proxy
In order to have console applications use a proxy, the easiest way is to set the proxy in system environment, this can either be done by using command line:
Add proxy to environment
Shell
export http_proxy=http://<proxy>:<port>
export https_proxy=http://<proxy>:...