当我尝试通过代理连接搜索可用的 snap 包时:
snap find atom
我收到以下错误:
error: Get
https://api.snapcraft.io/api/v1/snaps/search?confinement=strict%2Cclassic&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cbinary_filesize%2Cdownload_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Csnap_id%2Clicense%2Cbase%2Cmedia%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cdeveloper_name%2Cdeveloper_validation%2Cprivate%2Cconfinement%2Ccommon_ids&q=atom&scope=wide:
proxyconnect tcp: tls: oversized record received with length 20527
我的问题不是重复的Snap 商店的代理设置
因为我的 https 代理配置已经是:
https_proxy=http://127.0.0.1:3128/
答案1
我找到了问题的根源。还有一个环境变量的文件:
/etc/environment
https_proxy
在哪里=https://
将其更改为http://
然后重新启动
sudo systemctl restart snapd.service
解决了这个问题。