Comment 2 for bug 516032

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

root@hactar:~# env | grep proxy
root@hactar:~# export http_proxy=http://www.example.com:8000/
root@hactar:~# add-apt-repository ppa:python-snippets-drivers/python-snippets-daily
Error reading https://launchpad.net/api/beta/~python-snippets-drivers/+archive/python-snippets-daily: <urlopen error [Errno 110] Connection timed out>
root@hactar:~# export https_proxy=http://www.example.com:8000/
root@hactar:~# add-apt-repository ppa:python-snippets-drivers/python-snippets-daily
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 4DF656F99017C017086BD3018B70F76B105E3B33
gpg: requesting key 105E3B33 from hkp server keyserver.ubuntu.com
gpg: key 105E3B33: "Launchpad python-snippets-daily" not changed
gpg: Total number processed: 1
gpg: unchanged: 1

However, if you set proxy in gnome settings you get
https_proxy=https://www.example.com:8000/

Whereas add-apt-repository only works with:-
https_proxy=http://www.example.com:8000/