Reputation: 1063
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'
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.
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.
Upvotes: 14
Views: 12484
Reputation: 963
I had the same problem, although on WSL 1, not 2. The solution I found was exiting Ubuntu and shutting down WSL after installing conda, from cmd.exe
:
> wsl --shutdown
After restarting Ubuntu, the problem went away. It didn't require installing an older version of conda first.
Upvotes: 37
Reputation: 225
You can try three things according to this: https://github.com/conda/conda/issues/9948
chmod -R 777 ~/.miniconda3
) see herewsl --shutdown
) see hereUpvotes: 9
Reputation: 183
According to this link: https://github.com/conda/conda/issues/9948#issuecomment-771901234
Please try to manually install the version below 4.7.12.1:
wget https://repo.anaconda.com/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh
Upvotes: 3