Adding Repository Behind Proxy Using add-apt-repository

If you are behind proxy then you may have noticed that adding repository is not easy in Ubuntu. Even though $sudo apt-get-update or $sudo apt-get-install kind of command work, $sudo add-apt-repository don't work. To get rid of this problem you have to add one line at the end of the sudoer's file. Use the following code in terminal. $sudo visudo And then add the following line at the end of the file Default env_keep="http_proxy" It should work now. Cheers A.Paul