Ubuntu – How to install snap packages behind web proxy on Ubuntu 16.04


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>"