Snap not doing proxy ???

Colin Watson cjwatson at ubuntu.com
Mon Jun 6 14:47:36 UTC 2022


On Mon, Jun 06, 2022 at 07:45:43AM -0400, Jerry Geis wrote:
> I am updating a 20.04 LTS and the OS is updating but the SNAPs are not
> 
> "unable to connect to snap store".
> 
> This is using a http_proxy - does the SNAP update not obey proxy ?

(The word "snap" isn't an acronym/initialism, so shouldn't be written in
all-caps.)

You can use a proxy for snaps, but it's a bit more complicated than just
using a regular HTTP proxy.  For one thing, all of snapd's communication
with the store is done over HTTPS, and HTTP proxies can't effectively
cache HTTPS unless you do nasty things like setting up a
man-in-the-middle HTTPS certificate so that they can see the encrypted
data and substitute cached versions.

https://docs.ubuntu.com/snap-store-proxy/en/ is a specialized proxy that
works with the snap store.  It's definitely more complicated to set up
than a generic HTTP proxy, but is significantly more useful for
bandwidth reduction, as well as providing some extra management options.

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list