wget proxy:
Proxy environment variables are not propagated to all stages of the Yocto build process so sometimes wget cannot pick them up. To workaround this add the following to ~/.wgetrc.
https_proxy = http://socks.example.com:1080
http_proxy = http://socks.example.com:1080
ftp_proxy = http://socks.example.com:1080
no_proxy = example.com:1080;127.0.0.1
use_proxy = on
snap proxy:
sudo snap set system proxy.http=http://127.0.0.1:3128
sudo snap set system proxy.https=http://127.0.0.1:3128
notice:
A gotcha that affected me: make sure your URL for the proxy.https variable starts with http: rather than https:. Otherwise this won't work.
参考文献:
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
https://stackoverflow.com/questions/50584084/snap-proxy-doesn%C2%B4t-work