Ubuntu – How to fix “unable to contact snap store” error while installing conjure-up

16.04conjure-upsnap

I am trying to install conjure-up to install the kubernetes on my ubuntu (16.04.1) with the command:

sudo snap install conjure-up --classic

After a few seconds, the below error is shown:

error: unable to contact snap store

I have both http_proxy and https_proxy already setup

Below is the output from snap version

snap    2.34.2
snapd   2.34.2
series  16
ubuntu  16.04
kernel  4.15.0-42-generic

I came across the similar question, Problem with snap store but the answer provided (issue with snap store try after some time) did not solve my issue.

Best Answer

Try configuring the proxy settings with these commands:

# sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"
# sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>"