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/
root@hactar:~# env | grep proxy www.example. com:8000/ snippets- drivers/ python- snippets- daily /launchpad. net/api/ beta/~python- snippets- drivers/ +archive/ python- snippets- daily: <urlopen error [Errno 110] Connection timed out> www.example. com:8000/ snippets- drivers/ python- snippets- daily 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 4DF656F99017C01 7086BD3018B70F7 6B105E3B33 ubuntu. com snippets- daily" not changed
root@hactar:~# export http_proxy=http://
root@hactar:~# add-apt-repository ppa:python-
Error reading https:/
root@hactar:~# export https_proxy=http://
root@hactar:~# add-apt-repository ppa:python-
Executing: gpg --ignore-
gpg: requesting key 105E3B33 from hkp server keyserver.
gpg: key 105E3B33: "Launchpad python-
gpg: Total number processed: 1
gpg: unchanged: 1
However, if you set proxy in gnome settings you get /www.example. com:8000/
https_proxy=https:/
Whereas add-apt-repository only works with:- www.example. com:8000/
https_proxy=http://