I know how to configure APT to use a web proxy. But what about snap?

share|improve this question
up vote 4 down vote accepted

snapd reads /etc/environment, so setting the usual proxy environment variables there works. On Ubuntu, that's done automatically for you by Settings → Network → Network proxy, so as long as you restart snapd after changing that file you should be set.

share|improve this answer
    
It works!! thank you. – Carlos Estrada May 20 '16 at 17:53
1  
Being more specific, the snapd.service file is located here: /lib/systemd/system/snapd.service – darkhole May 26 '16 at 13:28
    
@darkhole one shouldn't edit /lib/systemd/system/snapd.service, but use systemctl edit snapd.service. See my answer: askubuntu.com/questions/659267/… – muru Jun 7 '16 at 13:57
    
Well what if one wants to automate this configuration? – pmatulis Dec 19 '16 at 16:18
1  
Remember, you will need to restart the snapd service before these changes take effect. – Seth Jan 11 '17 at 22:07

There is a reported bug:

https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1579652

Please subscribe to check changes on it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.