欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2024-03-14 09:30:58
...

conda联网报错:

$ conda update conda
Collecting package metadata (current_repodata.json): failed

ProxyError: 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 InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
  1. 检查 ~/.condarc中的代理设置(是否有格式错误)
  2. 检查 ~/.bashrc中的代理设置 (非必须)

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