conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
5.75k stars 305 forks source link

Conda not updating to 24.1.2 in miniforge #557

Closed johnholman closed 4 months ago

johnholman commented 4 months ago

Solution to issue cannot be found in the documentation.

Issue

Just downloaded and installed miniforge on windows 11, then ran "conda update conda" and got message

(base) C:\Users\johng>conda update conda Channels:

==> WARNING: A newer version of conda exists. <== current version: 23.11.0 latest version: 24.1.2

Please update conda by running

$ conda update -n base -c conda-forge conda

All requested packages already installed.

Then tried "mamba update mamba" and "mamba update --all" which updated various packages, but not conda, and I still get the warning about a newer version of conda when I tried "conda update conda" afterwards.

Is there something wrong here?

Installed packages

(base) C:\Users\johng>conda list
# packages in environment at C:\Users\johng\miniforge3:
#
# Name                    Version                   Build  Channel
archspec                  0.2.2              pyhd8ed1ab_0    conda-forge
boltons                   23.1.1             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310h00ffb61_1    conda-forge
bzip2                     1.0.8                hcfcfb64_5    conda-forge
ca-certificates           2024.2.2             h56e8100_0    conda-forge
certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py310h8d17308_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.11.0         py310h5588dad_1    conda-forge
conda-libmamba-solver     24.1.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
fmt                       10.2.1               h181d51b_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py310h5588dad_3    conda-forge
krb5                      1.21.2               heb0366b_0    conda-forge
libarchive                3.7.2                h313118b_1    conda-forge
libcurl                   8.5.0                hd5e4a3a_0    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libiconv                  1.17                 hcfcfb64_2    conda-forge
libmamba                  1.5.6                h3f09ed1_0    conda-forge
libmambapy                1.5.6           py310h04f2035_0    conda-forge
libsolv                   0.7.28               h12be248_0    conda-forge
libsqlite                 3.45.1               hcfcfb64_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libxml2                   2.12.5               hc3477c8_0    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
lzo                       2.10              he774522_1000    conda-forge
mamba                     1.5.6           py310hd9d798f_0    conda-forge
menuinst                  2.0.2           py310h00ffb61_0    conda-forge
miniforge_console_shortcut 2.0                  h57928b3_1    conda-forge
openssl                   3.2.1                hcfcfb64_0    conda-forge
packaging                 23.2               pyhd8ed1ab_0    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
platformdirs              4.2.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.4.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h8d17308_0    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyh0701188_6    conda-forge
python                    3.10.13         h4de0772_1_cpython    conda-forge
python_abi                3.10                    4_cp310    conda-forge
reproc                    14.2.4.post0         hcfcfb64_1    conda-forge
reproc-cpp                14.2.4.post0         h63175ca_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.6          py310h8d17308_0    conda-forge
ruamel.yaml.clib          0.2.8           py310h8d17308_0    conda-forge
setuptools                69.1.1             pyhd8ed1ab_0    conda-forge
tk                        8.6.13               h5226925_1    conda-forge
tqdm                      4.66.2             pyhd8ed1ab_0    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
vc                        14.3                hcf57466_18    conda-forge
vc14_runtime              14.38.33130         h82b7239_18    conda-forge
vs2015_runtime            14.38.33130         hcb4865c_18    conda-forge
wheel                     0.42.0             pyhd8ed1ab_0    conda-forge
win_inet_pton             1.1.0              pyhd8ed1ab_6    conda-forge
xz                        5.2.6                h8d14728_0    conda-forge
yaml-cpp                  0.8.0                h63175ca_0    conda-forge
zstandard                 0.22.0          py310h0009e47_0    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge

Environment info

(base) C:\Users\johng>conda info

     active environment : base
    active env location : C:\Users\johng\miniforge3
            shell level : 1
       user config file : C:\Users\johng\.condarc
 populated config files : C:\Users\johng\miniforge3\.condarc
                          C:\Users\johng\.condarc
          conda version : 23.11.0
    conda-build version : not installed
         python version : 3.10.13.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=x86_64
                          __conda=23.11.0=0
                          __cuda=12.2=0
                          __win=0=0
       base environment : C:\Users\johng\miniforge3  (writable)
      conda av data dir : C:\Users\johng\miniforge3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\johng\miniforge3\pkgs
                          C:\Users\johng\.conda\pkgs
                          C:\Users\johng\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\johng\miniforge3\envs
                          C:\Users\johng\.conda\envs
                          C:\Users\johng\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.10.13 Windows/10 Windows/10.0.22631 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6
          administrator : False
             netrc file : None
           offline mode : False
mathause commented 4 months ago

See conda-forge/mamba-feedstock#210

johnholman commented 4 months ago

Still doesn't work though .. just a matter of waiting for some change to make it through?

Thanks.

mathause commented 4 months ago

Yes I think we need to wait for a new mamba release.

hmaarrfk commented 4 months ago

correct. honestly, if you get to the point where yo ucan type conda or mamba then this feedstock has done its job.

@mathause pointed you to what seems like the offending issue, so its better to just track there and provide feedback there.

johnholman commented 4 months ago

Mentioning here again just in case other miniforge (or mambaforge) users are confronted with the warning about a new version of conda but find themselves unable to update to it.

Mamba 1.5.7 was released yesterday and resolves the underlying problem. "conda update conda" will still fail with this message if the currently installed versions are conda 23.11.0 and mamba 1.5.6, but "conda install conda=24.1.2" or "conda install mamba=1.5.7" will now work and either will update both conda and mamba.