mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.68k stars 346 forks source link

Windows installation fails with `curl` error `CRYPT_E_REVOCATION_OFFLINE (0x80092013)` #3346

Open 9ao9ai9ar opened 1 month ago

9ao9ai9ar commented 1 month ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Micromamba

Search tried in issue tracker

curl windows install

Latest version of Mamba

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

On Windows 10 Home 22H2 19045.4651, using the recommended way to install micromamba:

Invoke-Expression ((Invoke-WebRequest -Uri https://micro.mamba.pm/install.ps1).Content)

leads to the following error:

Downloading micromamba from https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-win-64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_REVOCATION_OFFLINE (0x80092013) - The revocation function was unable to check revocation because the revocation server was offline.

Installing micromamba to C:\Users\<username>\AppData\Local\micromamba

Move-Item:
Line |
  14 |  Move-Item -Force micromamba.exe $MAMBA_INSTALL_PATH | out-null
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\<username>\Downloads\micromamba.exe' because it does not exist.
C:\Users\<username>\AppData\Local\micromamba\micromamba.exe is already in PATH

Do you want to initialize micromamba for the shell activate command? (Y/n):

Manual install seems to download the file, but the tar extraction fails with the following output:

tar.exe: Error opening archive: Can't initialize filter; unable to run program "bzip2 -d"

Doing a search on the curl error leads me to this GitHub issue, which does not seem like a problem I should resolve on my part, nor do I know how to.

My curl version:

curl 8.7.1 (Windows) libcurl/8.7.1 Schannel zlib/1.3 WinIDN
Release-Date: 2024-03-27
Protocols: dict file ftp ftps http https imap imaps ipfs ipns mqtt pop3 pop3s smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM SPNEGO SSL SSPI threadsafe Unicode UnixSockets

mamba info / micromamba info

No response

Logs

No response

environment.yml

No response

~/.condarc

No response

function2-llx commented 3 weeks ago

Got the same error with Git Bash on Windows.