当前位置: 代码迷 >> 综合 >> conda install/update 代理联网报错 ProxyError: Conda cannot proceed due to an error in your proxy configur
  详细解决方案

conda install/update 代理联网报错 ProxyError: Conda cannot proceed due to an error in your proxy configur

热度:74   发布时间:2023-12-15 16:04:55.0

conda联网报错:

$ conda update conda
Collecting package metadata (current_repodata.json): failedProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.

排查:

  1. 检查机器是否可以联网: sudo apt update

不能联网会输出类似于:

Get:1 http://10.xxx.xxx.xxx:80/ac_portal/proxy.html?template=default&tabs=pwd&vlanid=0&url=http://mirrors.aliyun.com/ubuntu bionic InRelease [2,250 B]
Err:1 http://10.xxx.xxx.xxx:80/ac_portal/proxy.html?template=default&tabs=pwd&vlanid=0&url=http://mirrors.aliyun.com/ubuntu bionic InReleaseClearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
  1. 检查 ~/.condarc中的代理设置(是否有格式错误)
  2. 检查 ~/.bashrc中的代理设置 (非必须)

问题解决:
我出现这个问题是因为机器本身没有通过 firefox 浏览器登录公司认证网关,所以连不上外网
通过排查 1, 找出了这个问题

  相关解决方案