Probably best to open this up in a new bug report if you think there is an error. However, I can at least confirm that having http_proxy and https_proxy set does yield connections to my proxy with apt-add-repository
Notice, that your example has you doing an 'echo $http...' to prove that things are set, however that doesn't show if the variable is exported (available to suprocesses).
@miskokot
Probably best to open this up in a new bug report if you think there is an error. However, I can at least confirm that having http_proxy and https_proxy set does yield connections to my proxy with apt-add-repository
root@bionic:~# http_proxy=http:// 10.5.0. 5:8000 https_proxy=http:// 10.5.0. 5:8000 apt-add-repository ppa:canonical- kernel- team/ppa
Notice, that your example has you doing an 'echo $http...' to prove that things are set, however that doesn't show if the variable is exported (available to suprocesses).