WSL2 (Ubuntu 20.04) 上的 Miniconda 因 CondaHTTPError: HTTP 000 CONNECTION FAILED 而失败 [英] Miniconda on WSL2 (Ubuntu 20.04) fails with CondaHTTPError: HTTP 000 CONNECTION FAILED

查看:108
本文介绍了WSL2 (Ubuntu 20.04) 上的 Miniconda 因 CondaHTTPError: HTTP 000 CONNECTION FAILED 而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Ubuntu 的 WSL2 上,想安装 Miniconda 4.9.2 版.安装毫不费力,但我现在无法连接到 anaconda 来安装软件包.像 conda update conda 这样的简单命令也失败了

I am on a WSL2 with Ubuntu and wanted to install Miniconda version 4.9.2. The installation went effortlessly, but I can now not connect to anaconda to install packages. Also simple commands like conda update conda fail with

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/linux-64'

您会找到许多针对此主题的解决方案——适用于纯 Windows!像这里,但我找不到适用于 Ubuntu 的解决方案,或者在WSL2.

You find plenty of solutions for this topic -- for pure Windows! Like here, but I could not find a solution for Ubuntu, or an Ubuntu in a WSL2.

正如上面的解决方案所建议的那样,在 Windows-dll 之间移动对我来说并没有什么意义.无论如何,我尝试将类似的声音文件复制到类似的声音文件夹中,但这并没有奏效.

It does not really make sense to me moving around windows-dlls, as the upper solution suggests. I tried anyway and copied similar sounding files to similar sounding folders, but that did not do the trick.

即使是打开加密的技巧"也不起作用.看来真的是个很严重的问题.有什么建议?谢谢.

Even the 'trick' of turning of encryption did not work. Seems to be a really severe problem. Any suggestions? Thanks.

推荐答案

你可以根据这个尝试三件事:https://github.com/conda/conda/issues/9948

You can try three things according to this: https://github.com/conda/conda/issues/9948

  1. 安装 conda/miniconda 的旧版本 (4.7.12) 参见此处
  2. 更改文件- &miniconda 安装的目录权限 (chmod -R 777 ~/.miniconda3) 见这里
  3. 重启 wsl (wsl --shutdown) 看这里

这篇关于WSL2 (Ubuntu 20.04) 上的 Miniconda 因 CondaHTTPError: HTTP 000 CONNECTION FAILED 而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆