Ubuntu – How to install snap packages behind web proxy on Ubuntu 16.04 16.04PROXYsnap I know how to configure APT to use a web proxy. But what about snap? Best Answer A system option was added in snap 2.28 to specify the proxy server. $ sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>" $ sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>" Documentation Related SolutionsUbuntu – Can’t install gems from behind proxy The environment is not preserved when using sudo, so the setting of the http_proxy variable alone is ineffective. You need to export the http_proxy variable and then run sudo with the option -E export http_proxy=... sudo -E gem list -r Ubuntu – Ubuntu 12.04 APT Proxy You can set proxy in System Settings --> Network --> Network Proxy. If it still not OK for apt, you can use several methods, I personally use method adding the following lines to /etc/apt/apt.conf: Acquire::http::proxy "http://username:password@proxyserver:port/"; Acquire::https::proxy "http://username:password@proxyserver:port/"; Save and reboot Related QuestionUbuntu – Can’t install gems from behind proxyUbuntu – Ubuntu 12.04 APT ProxyUbuntu – Ubuntu sits behind a corporate proxy/firewall — how can I install packagesUbuntu – Proxy settings for snap store
Best Answer
A system option was added in snap 2.28 to specify the proxy server.
Documentation