snap不支持镜像,只能设置代理
安装
sudo apt install snapd
修改配置
sudo systemctl edit snapd
[Service] Environment="http_proxy=socks://10.0.2.2:1080" Environment="https_proxy=socks://10.0.2.2:1080"
重启
sudo systemctl daemon-reload sudo systemctl restart snapd