Skip to content

Replace conda update -n base conda by conda install -n base "conda=version"? #11300

@astrojuanlu

Description

@astrojuanlu

Checklist

  • I added a descriptive title
  • I searched for other feature requests and couldn't find a duplicate (including also the type-feature tag)
  • I confirmed that it's not related to another project (see the above section)

What is the idea?

When conda is outdated, it recommends the user doing a conda update -n base conda. That's the case at least with conda 4.10.3:

$ conda install black
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.3
  latest version: 4.11.0

Please update conda by running

    $ conda update -n base conda


Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.3
  latest version: 4.11.0

Please update conda by running

    $ conda update -n base conda



## Package Plan ##
...

Instead, conda should recommend the user to do conda install -n base "conda=version".

Why is this needed

It looks like conda update -n base conda has the side effect of upgrading everything else. When the base environment has other packages, this leads to really scary upgrades:

$ conda update -n base conda
Collecting package metadata (current_repodata.json): done
Solving environment: / WARNING conda.core.solve:_add_specs(611): pinned spec conda==4.8.2 conflicts with explicit specs.  Overriding pinned spec.
| 
Warning: 4 possible package resolutions (only showing differing packages):
  - conda-forge/linux-64::click-8.0.4-py37h89c1867_0, conda-forge/linux-64::distributed-2.18.0-py37hc8dfbb8_0, conda-forge/noarch::decorator-4.4.2-py_0, conda-forge/noarch::networkx-2.5.1-pyhd8ed1ab_0
  - conda-forge/linux-64::distributed-2.19.0-py37hc8dfbb8_0, conda-forge/noarch::click-7.1.2-pyh9f0ad1d_0, conda-forge/noarch::decorator-4.4.2-py_0, conda-forge/noarch::networkx-2.5.1-pyhd8ed1ab_0
  - conda-forge/linux-64::distributed-2.19.0-py37hc8dfbb8_0, conda-forge/noarch::click-7.1.2-pyh9f0ad1d_0, conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_0, conda-forge/noarch::networkx-2.4-py_1
  - conda-forge/linux-64::click-8.0.4-py37h89c1867_0, conda-forge/linux-64::distributed-2.18.0-py37hc8dfbb8_0, conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_0, conda-forge/noarch::networkx-2.4-pydone

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - conda


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _openmp_mutex-4.5          |            1_gnu          22 KB  conda-forge
    alembic-1.7.6              |     pyhd8ed1ab_0         136 KB  conda-forge
    argcomplete-2.0.0          |     pyhd8ed1ab_0          34 KB  conda-forge
    attrs-21.4.0               |     pyhd8ed1ab_0          49 KB  conda-forge
    backports-1.0              |             py_2           4 KB  conda-forge
    backports.functools_lru_cache-1.6.4|     pyhd8ed1ab_0           9 KB  conda-forge
    bleach-4.1.0               |     pyhd8ed1ab_0         121 KB  conda-forge
    blosc-1.21.0               |       h9c3ff4c_0         841 KB  conda-forge
    brotlipy-0.7.0             |py37h5e8e339_1003         342 KB  conda-forge
    bzip2-1.0.8                |       h7f98852_4         484 KB  conda-forge
    c-ares-1.18.1              |       h7f98852_0         113 KB  conda-forge
    cffi-1.15.0                |   py37h036bc23_0         225 KB  conda-forge
    charset-normalizer-2.0.12  |     pyhd8ed1ab_0          35 KB  conda-forge
    click-8.0.4                |   py37h89c1867_0         145 KB  conda-forge
    colorama-0.4.4             |     pyh9f0ad1d_0          18 KB  conda-forge
    conda-4.11.0               |   py37h89c1867_1         983 KB  conda-forge
    conda-package-handling-1.7.3|   py37h5e8e339_1        1008 KB  conda-forge
    cryptography-36.0.1        |   py37hf1a17b8_0         1.7 MB  conda-forge
    cycler-0.11.0              |     pyhd8ed1ab_0          10 KB  conda-forge
    cytoolz-0.11.2             |   py37h5e8e339_1         407 KB  conda-forge
    debugpy-1.5.1              |   py37hcd2ae1e_0         2.0 MB  conda-forge
    defusedxml-0.7.1           |     pyhd8ed1ab_0          23 KB  conda-forge
    entrypoints-0.4            |     pyhd8ed1ab_0           9 KB  conda-forge
    fastcache-1.1.0            |   py37h5e8e339_3          30 KB  conda-forge
    freetype-2.10.4            |       h0708190_1         890 KB  conda-forge
    fsspec-2022.2.0            |     pyhd8ed1ab_0          92 KB  conda-forge
    giflib-5.2.1               |       h36c2ea0_2          77 KB  conda-forge
    gmp-6.2.1                  |       h58526e2_0         806 KB  conda-forge
    gmpy2-2.1.2                |   py37h025e8b9_0         216 KB  conda-forge
    idna-3.3                   |     pyhd8ed1ab_0          55 KB  conda-forge
    imageio-2.16.1             |     pyhcf75d05_0         3.2 MB  conda-forge
    importlib-metadata-4.11.2  |   py37h89c1867_0          33 KB  conda-forge
    importlib_metadata-4.11.2  |       hd8ed1ab_0           4 KB  conda-forge
    importlib_resources-5.4.0  |     pyhd8ed1ab_0          21 KB  conda-forge
    jbig-2.1                   |    h7f98852_2003          43 KB  conda-forge
    jedi-0.18.1                |   py37h89c1867_0         997 KB  conda-forge
    jinja2-3.0.3               |     pyhd8ed1ab_0          99 KB  conda-forge
    joblib-1.1.0               |     pyhd8ed1ab_0         210 KB  conda-forge
    jpeg-9e                    |       h7f98852_0         269 KB  conda-forge
    json5-0.9.5                |     pyh9f0ad1d_0          20 KB  conda-forge
    jsonschema-4.4.0           |     pyhd8ed1ab_0          57 KB  conda-forge
    jupyter_core-4.9.2         |   py37h89c1867_0          80 KB  conda-forge
    jupyter_telemetry-0.1.0    |     pyhd8ed1ab_1          10 KB  conda-forge
    keyutils-1.6.1             |       h166bdaf_0         115 KB  conda-forge
    kiwisolver-1.3.2           |   py37h2527ec5_1          78 KB  conda-forge
    krb5-1.19.2                |       h3790be6_4         1.5 MB  conda-forge
    lcms2-2.12                 |       hddcbb42_0         443 KB  conda-forge
    ld_impl_linux-64-2.36.1    |       hea4e1c9_2         667 KB  conda-forge
    lerc-3.0                   |       h9c3ff4c_0         216 KB  conda-forge
    libcurl-7.81.0             |       h2574ce0_0         338 KB  conda-forge
    libdeflate-1.10            |       h7f98852_0          77 KB  conda-forge
    libedit-3.1.20191231       |       he28a2e2_2         121 KB  conda-forge
    libev-4.33                 |       h516909a_1         104 KB  conda-forge
    libffi-3.4.2               |       h7f98852_5          57 KB  conda-forge
    libgcc-ng-11.2.0           |      h1d223b6_13         906 KB  conda-forge
    libgfortran-ng-7.5.0       |      h14aa051_20          23 KB  conda-forge
    libgfortran4-7.5.0         |      h14aa051_20         1.2 MB  conda-forge
    libgomp-11.2.0             |      h1d223b6_13         428 KB  conda-forge
    libnghttp2-1.47.0          |       h727a467_0         808 KB  conda-forge
    libnsl-2.0.0               |       h7f98852_0          31 KB  conda-forge
    libpng-1.6.37              |       h21135ba_2         306 KB  conda-forge
    libsodium-1.0.18           |       h36c2ea0_1         366 KB  conda-forge
    libssh2-1.10.0             |       ha56f1ee_2         233 KB  conda-forge
    libstdcxx-ng-11.2.0        |      he4da1e4_13         4.2 MB  conda-forge
    libtiff-4.3.0              |       h542a066_3         638 KB  conda-forge
    libwebp-1.2.2              |       h3452ae3_0          85 KB  conda-forge
    libwebp-base-1.2.2         |       h7f98852_1         824 KB  conda-forge
    libxcb-1.13                |    h7f98852_1004         391 KB  conda-forge
    libzlib-1.2.11             |    h36c2ea0_1013          59 KB  conda-forge
    lz4-c-1.9.3                |       h9c3ff4c_1         179 KB  conda-forge
    lzo-2.10                   |    h516909a_1000         314 KB  conda-forge
    mako-1.1.6                 |     pyhd8ed1ab_0          58 KB  conda-forge
    markupsafe-2.1.0           |   py37h540881e_1          22 KB  conda-forge
    matplotlib-inline-0.1.3    |     pyhd8ed1ab_0          11 KB  conda-forge
    mistune-0.8.4              |py37h5e8e339_1005          54 KB  conda-forge
    mock-4.0.3                 |   py37h89c1867_2          51 KB  conda-forge
    mpc-1.2.1                  |       h9f54685_0         106 KB  conda-forge
    mpfr-4.1.0                 |       h9202a9a_1         2.6 MB  conda-forge
    mpmath-1.2.1               |     pyhd8ed1ab_0         437 KB  conda-forge
    msgpack-python-1.0.3       |   py37h2527ec5_0          91 KB  conda-forge
    nbconvert-5.6.1            |     pyhd8ed1ab_2         373 KB  conda-forge
    nbformat-5.1.3             |     pyhd8ed1ab_0          47 KB  conda-forge
    ncurses-6.3                |       h9c3ff4c_0        1012 KB  conda-forge
    networkx-2.5.1             |     pyhd8ed1ab_0         1.2 MB  conda-forge
    numpy-1.21.5               |   py37hf2998dd_0         6.1 MB  conda-forge
    oauthlib-3.2.0             |     pyhd8ed1ab_0          90 KB  conda-forge
    openjpeg-2.4.0             |       hb52868f_1         444 KB  conda-forge
    openssl-1.1.1l             |       h7f98852_0         2.1 MB  conda-forge
    packaging-21.3             |     pyhd8ed1ab_0          36 KB  conda-forge
    pandocfilters-1.5.0        |     pyhd8ed1ab_0          11 KB  conda-forge
    parso-0.8.3                |     pyhd8ed1ab_0          69 KB  conda-forge
    partd-1.2.0                |     pyhd8ed1ab_0          18 KB  conda-forge
    pexpect-4.8.0              |     pyh9f0ad1d_2          47 KB  conda-forge
    pickleshare-0.7.5          |          py_1003           9 KB  conda-forge
    pillow-9.0.1               |   py37h44f0d7a_2        44.4 MB  conda-forge
    pip-22.0.3                 |     pyhd8ed1ab_0         1.5 MB  conda-forge
    prometheus_client-0.13.1   |     pyhd8ed1ab_0          47 KB  conda-forge
    prompt-toolkit-3.0.27      |     pyha770c72_0         252 KB  conda-forge
    psutil-5.9.0               |   py37h5e8e339_0         344 KB  conda-forge
    pthread-stubs-0.4          |    h36c2ea0_1001           5 KB  conda-forge
    ptyprocess-0.7.0           |     pyhd3deb0d_0          16 KB  conda-forge
    pycosat-0.6.3              |py37h5e8e339_1009         107 KB  conda-forge
    pycparser-2.21             |     pyhd8ed1ab_0         100 KB  conda-forge
    pycurl-7.44.1              |   py37h88a64d2_1          70 KB  conda-forge
    pygments-2.11.2            |     pyhd8ed1ab_0         796 KB  conda-forge
    pyjwt-2.3.0                |     pyhd8ed1ab_1          18 KB  conda-forge
    pyopenssl-22.0.0           |     pyhd8ed1ab_0          49 KB  conda-forge
    pyparsing-3.0.7            |     pyhd8ed1ab_0          79 KB  conda-forge
    pyrsistent-0.18.1          |   py37h5e8e339_0          90 KB  conda-forge
    pysocks-1.7.1              |   py37h89c1867_4          28 KB  conda-forge
    python-3.7.12              |hb7a2778_100_cpython        57.3 MB  conda-forge
    python-dateutil-2.8.2      |     pyhd8ed1ab_0         240 KB  conda-forge
    python-json-logger-2.0.1   |     pyh9f0ad1d_0          10 KB  conda-forge
    python_abi-3.7             |          2_cp37m           4 KB  conda-forge
    pytz-2021.3                |     pyhd8ed1ab_0         242 KB  conda-forge
    pywavelets-1.2.0           |   py37hb1e94ed_1         4.4 MB  conda-forge
    pyyaml-6.0                 |   py37h5e8e339_3         187 KB  conda-forge
    pyzmq-22.3.0               |   py37h336d617_1         501 KB  conda-forge
    readline-8.1               |       h46c0cb4_0         295 KB  conda-forge
    requests-2.27.1            |     pyhd8ed1ab_0          53 KB  conda-forge
    ruamel.yaml-0.17.21        |   py37h5e8e339_0         171 KB  conda-forge
    ruamel.yaml.clib-0.2.6     |   py37h5e8e339_0         158 KB  conda-forge
    ruamel_yaml-0.15.80        |py37h5e8e339_1006         270 KB  conda-forge
    send2trash-1.8.0           |     pyhd8ed1ab_0          17 KB  conda-forge
    setuptools-59.8.0          |   py37h89c1867_0         1.0 MB  conda-forge
    six-1.16.0                 |     pyh6c4a22f_0          14 KB  conda-forge
    sortedcontainers-2.4.0     |     pyhd8ed1ab_0          26 KB  conda-forge
    soupsieve-2.3.1            |     pyhd8ed1ab_0          33 KB  conda-forge
    sqlite-3.37.0              |       h9cd32fc_0         1.5 MB  conda-forge
    tblib-1.7.0                |     pyhd8ed1ab_0          15 KB  conda-forge
    terminado-0.13.2           |   py37h89c1867_0          27 KB  conda-forge
    testpath-0.6.0             |     pyhd8ed1ab_0          85 KB  conda-forge
    tk-8.6.12                  |       h27826a3_0         3.3 MB  conda-forge
    toolz-0.11.2               |     pyhd8ed1ab_0          48 KB  conda-forge
    tornado-6.1                |   py37h5e8e339_2         642 KB  conda-forge
    tqdm-4.63.0                |     pyhd8ed1ab_0          80 KB  conda-forge
    traitlets-4.3.3            |     pyhd8ed1ab_2          62 KB  conda-forge
    typing_extensions-4.1.1    |     pyha770c72_0          29 KB  conda-forge
    urllib3-1.26.8             |     pyhd8ed1ab_1         100 KB  conda-forge
    wcwidth-0.2.5              |     pyh9f0ad1d_2          33 KB  conda-forge
    wheel-0.37.1               |     pyhd8ed1ab_0          31 KB  conda-forge
    xorg-libxau-1.0.9          |       h7f98852_0          13 KB  conda-forge
    xorg-libxdmcp-1.1.3        |       h7f98852_0          19 KB  conda-forge
    xz-5.2.5                   |       h516909a_1         343 KB  conda-forge
    yaml-0.2.5                 |       h7f98852_2          87 KB  conda-forge
    zeromq-4.3.4               |       h9c3ff4c_1         351 KB  conda-forge
    zict-2.1.0                 |     pyhd8ed1ab_0          12 KB  conda-forge
    zipp-3.7.0                 |     pyhd8ed1ab_1          12 KB  conda-forge
    zlib-1.2.11                |    h36c2ea0_1013          86 KB  conda-forge
    zstd-1.5.2                 |       ha95c52a_0         458 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       165.2 MB

The following NEW packages will be INSTALLED:

  backports          conda-forge/noarch::backports-1.0-py_2
  backports.functoo~ conda-forge/noarch::backports.functools_lru_cache-1.6.4-pyhd8ed1ab_0
  c-ares             conda-forge/linux-64::c-ares-1.18.1-h7f98852_0
  charset-normalizer conda-forge/noarch::charset-normalizer-2.0.12-pyhd8ed1ab_0
  colorama           conda-forge/noarch::colorama-0.4.4-pyh9f0ad1d_0
  giflib             conda-forge/linux-64::giflib-5.2.1-h36c2ea0_2
  importlib_resourc~ conda-forge/noarch::importlib_resources-5.4.0-pyhd8ed1ab_0
  jbig               conda-forge/linux-64::jbig-2.1-h7f98852_2003
  keyutils           conda-forge/linux-64::keyutils-1.6.1-h166bdaf_0
  lcms2              conda-forge/linux-64::lcms2-2.12-hddcbb42_0
  lerc               conda-forge/linux-64::lerc-3.0-h9c3ff4c_0
  libdeflate         conda-forge/linux-64::libdeflate-1.10-h7f98852_0
  libev              conda-forge/linux-64::libev-4.33-h516909a_1
  libgfortran4       conda-forge/linux-64::libgfortran4-7.5.0-h14aa051_20
  libnghttp2         conda-forge/linux-64::libnghttp2-1.47.0-h727a467_0
  libnsl             conda-forge/linux-64::libnsl-2.0.0-h7f98852_0
  libwebp            conda-forge/linux-64::libwebp-1.2.2-h3452ae3_0
  libxcb             conda-forge/linux-64::libxcb-1.13-h7f98852_1004
  libzlib            conda-forge/linux-64::libzlib-1.2.11-h36c2ea0_1013
  openjpeg           conda-forge/linux-64::openjpeg-2.4.0-hb52868f_1
  pthread-stubs      conda-forge/linux-64::pthread-stubs-0.4-h36c2ea0_1001
  xorg-libxau        conda-forge/linux-64::xorg-libxau-1.0.9-h7f98852_0
  xorg-libxdmcp      conda-forge/linux-64::xorg-libxdmcp-1.1.3-h7f98852_0

The following packages will be REMOVED:

  chardet-3.0.4-py37hc8dfbb8_1006
  olefile-0.46-py_0
  pandoc-2.9.2.1-0
  python-editor-1.0.4-py_0

The following packages will be UPDATED:

  _openmp_mutex                                   4.5-0_gnu --> 4.5-1_gnu
  alembic                                1.4.2-pyh9f0ad1d_0 --> 1.7.6-pyhd8ed1ab_0
  argcomplete                           1.12.3-pyhd8ed1ab_2 --> 2.0.0-pyhd8ed1ab_0
  attrs                                         19.3.0-py_0 --> 21.4.0-pyhd8ed1ab_0
  bleach                                 3.1.5-pyh9f0ad1d_0 --> 4.1.0-pyhd8ed1ab_0
  blosc                                   1.19.0-he1b5a44_0 --> 1.21.0-h9c3ff4c_0
  brotlipy                          0.7.0-py37h8f50634_1000 --> 0.7.0-py37h5e8e339_1003
  bzip2                                    1.0.8-h516909a_2 --> 1.0.8-h7f98852_4
  cffi                                1.14.4-py37h11fe52a_0 --> 1.15.0-py37h036bc23_0
  click              conda-forge/noarch::click-7.1.2-pyh9f~ --> conda-forge/linux-64::click-8.0.4-py37h89c1867_0
  conda                               4.10.3-py37h89c1867_4 --> 4.11.0-py37h89c1867_1
  conda-package-han~                   1.6.0-py37h8f50634_2 --> 1.7.3-py37h5e8e339_1
  cryptography                         2.9.2-py37hb09aad4_0 --> 36.0.1-py37hf1a17b8_0
  cycler                                        0.10.0-py_2 --> 0.11.0-pyhd8ed1ab_0
  cytoolz                             0.10.1-py37h516909a_0 --> 0.11.2-py37h5e8e339_1
  debugpy                              1.2.0-py37h745909e_0 --> 1.5.1-py37hcd2ae1e_0
  defusedxml                                     0.6.0-py_0 --> 0.7.1-pyhd8ed1ab_0
  entrypoints        conda-forge/linux-64::entrypoints-0.3~ --> conda-forge/noarch::entrypoints-0.4-pyhd8ed1ab_0
  fastcache                            1.1.0-py37h8f50634_1 --> 1.1.0-py37h5e8e339_3
  freetype                                2.10.2-he06d7ca_0 --> 2.10.4-h0708190_1
  fsspec                                         0.7.4-py_0 --> 2022.2.0-pyhd8ed1ab_0
  gmp                                      6.2.0-he1b5a44_2 --> 6.2.1-h58526e2_0
  gmpy2                              2.1.0b1-py37h04dde30_0 --> 2.1.2-py37h025e8b9_0
  idna                                             2.9-py_1 --> 3.3-pyhd8ed1ab_0
  imageio                                        2.8.0-py_0 --> 2.16.1-pyhcf75d05_0
  importlib-metadata                   1.6.1-py37hc8dfbb8_0 --> 4.11.2-py37h89c1867_0
  importlib_metadata                                1.6.1-0 --> 4.11.2-hd8ed1ab_0
  jedi                                0.17.0-py37hc8dfbb8_0 --> 0.18.1-py37h89c1867_0
  jinja2                                2.11.2-pyh9f0ad1d_0 --> 3.0.3-pyhd8ed1ab_0
  joblib                                        0.15.1-py_0 --> 1.1.0-pyhd8ed1ab_0
  jpeg                                        9d-h516909a_0 --> 9e-h7f98852_0
  json5                                  0.9.4-pyh9f0ad1d_0 --> 0.9.5-pyh9f0ad1d_0
  jsonschema         conda-forge/linux-64::jsonschema-3.2.~ --> conda-forge/noarch::jsonschema-4.4.0-pyhd8ed1ab_0
  jupyter_core                         4.6.3-py37hc8dfbb8_1 --> 4.9.2-py37h89c1867_0
  jupyter_telemetry                              0.0.5-py_0 --> 0.1.0-pyhd8ed1ab_1
  kiwisolver                           1.2.0-py37h99015e2_0 --> 1.3.2-py37h2527ec5_1
  krb5                                    1.17.1-h2fd8d38_0 --> 1.19.2-h3790be6_4
  ld_impl_linux-64                          2.34-h53a641e_5 --> 2.36.1-hea4e1c9_2
  libcurl                                 7.69.1-hf7181ac_0 --> 7.81.0-h2574ce0_0
  libedit                           3.1.20191231-h46ee950_0 --> 3.1.20191231-he28a2e2_2
  libffi                                3.2.1-he1b5a44_1007 --> 3.4.2-h7f98852_5
  libgcc-ng                                9.2.0-h24d8f2e_2 --> 11.2.0-h1d223b6_13
  libgfortran-ng                           7.5.0-hdf63c60_6 --> 7.5.0-h14aa051_20
  libgomp                                  9.2.0-h24d8f2e_2 --> 11.2.0-h1d223b6_13
  libpng                                  1.6.37-hed695b0_1 --> 1.6.37-h21135ba_2
  libsodium                               1.0.17-h516909a_0 --> 1.0.18-h36c2ea0_1
  libssh2                                  1.9.0-hab1572f_2 --> 1.10.0-ha56f1ee_2
  libstdcxx-ng                             9.2.0-hdf63c60_2 --> 11.2.0-he4da1e4_13
  libtiff                                  4.1.0-hc7e4089_6 --> 4.3.0-h542a066_3
  libwebp-base                             1.1.0-h516909a_3 --> 1.2.2-h7f98852_1
  lz4-c                                    1.9.2-he1b5a44_1 --> 1.9.3-h9c3ff4c_1
  mako                                           1.1.0-py_0 --> 1.1.6-pyhd8ed1ab_0
  markupsafe                           1.1.1-py37h8f50634_1 --> 2.1.0-py37h540881e_1
  matplotlib-inline                      0.1.2-pyhd8ed1ab_2 --> 0.1.3-pyhd8ed1ab_0
  mistune                           0.8.4-py37h8f50634_1001 --> 0.8.4-py37h5e8e339_1005
  mock                                 4.0.2-py37hc8dfbb8_0 --> 4.0.3-py37h89c1867_2
  mpc                                   1.1.0-h04dde30_1007 --> 1.2.1-h9f54685_0
  mpfr                                     4.0.2-he80fd80_1 --> 4.1.0-h9202a9a_1
  mpmath                                         1.1.0-py_0 --> 1.2.1-pyhd8ed1ab_0
  msgpack-python                       1.0.0-py37h99015e2_1 --> 1.0.3-py37h2527ec5_0
  nbconvert          conda-forge/linux-64::nbconvert-5.6.1~ --> conda-forge/noarch::nbconvert-5.6.1-pyhd8ed1ab_2
  nbformat                                       5.0.6-py_0 --> 5.1.3-pyhd8ed1ab_0
  ncurses                                 6.1-hf484d3e_1002 --> 6.3-h9c3ff4c_0
  networkx                                         2.4-py_1 --> 2.5.1-pyhd8ed1ab_0
  numpy                               1.18.5-py37h8960a57_0 --> 1.21.5-py37hf2998dd_0
  oauthlib                                       3.0.1-py_0 --> 3.2.0-pyhd8ed1ab_0
  openssl                                 1.1.1h-h516909a_0 --> 1.1.1l-h7f98852_0
  packaging                               20.4-pyh9f0ad1d_0 --> 21.3-pyhd8ed1ab_0
  pandocfilters                                  1.4.2-py_1 --> 1.5.0-pyhd8ed1ab_0
  parso                                  0.7.0-pyh9f0ad1d_0 --> 0.8.3-pyhd8ed1ab_0
  partd                                          1.1.0-py_0 --> 1.2.0-pyhd8ed1ab_0
  pexpect            conda-forge/linux-64::pexpect-4.8.0-p~ --> conda-forge/noarch::pexpect-4.8.0-pyh9f0ad1d_2
  pickleshare        conda-forge/linux-64::pickleshare-0.7~ --> conda-forge/noarch::pickleshare-0.7.5-py_1003
  pillow                               7.1.2-py37h718be6c_0 --> 9.0.1-py37h44f0d7a_2
  pip                                           20.1.1-py_1 --> 22.0.3-pyhd8ed1ab_0
  prometheus_client                      0.8.0-pyh9f0ad1d_0 --> 0.13.1-pyhd8ed1ab_0
  prompt-toolkit                                 3.0.5-py_0 --> 3.0.27-pyha770c72_0
  psutil                               5.7.0-py37h8f50634_1 --> 5.9.0-py37h5e8e339_0
  ptyprocess                                  0.6.0-py_1001 --> 0.7.0-pyhd3deb0d_0
  pycosat                           0.6.3-py37h8f50634_1004 --> 0.6.3-py37h5e8e339_1009
  pycparser                                       2.20-py_0 --> 2.21-pyhd8ed1ab_0
  pycurl                            7.43.0.5-py37h16ce93b_0 --> 7.44.1-py37h88a64d2_1
  pygments                                       2.6.1-py_0 --> 2.11.2-pyhd8ed1ab_0
  pyjwt                                          1.7.1-py_0 --> 2.3.0-pyhd8ed1ab_1
  pyopenssl                                     19.1.0-py_1 --> 22.0.0-pyhd8ed1ab_0
  pyparsing                              2.4.7-pyh9f0ad1d_0 --> 3.0.7-pyhd8ed1ab_0
  pyrsistent                          0.16.0-py37h8f50634_0 --> 0.18.1-py37h5e8e339_0
  pysocks                              1.7.1-py37hc8dfbb8_1 --> 1.7.1-py37h89c1867_4
  python                           3.7.6-cpython_h8356626_6 --> 3.7.12-hb7a2778_100_cpython
  python-dateutil                                2.8.1-py_0 --> 2.8.2-pyhd8ed1ab_0
  python-json-logger                            0.1.11-py_0 --> 2.0.1-pyh9f0ad1d_0
  python_abi                                    3.7-1_cp37m --> 3.7-2_cp37m
  pytz                                  2020.1-pyh9f0ad1d_0 --> 2021.3-pyhd8ed1ab_0
  pywavelets                           1.1.1-py37h03ebfcd_1 --> 1.2.0-py37hb1e94ed_1
  pyyaml                               5.3.1-py37h8f50634_0 --> 6.0-py37h5e8e339_3
  pyzmq                               19.0.1-py37hac76be4_0 --> 22.3.0-py37h336d617_1
  readline                                   8.0-hf8c457e_0 --> 8.1-h46c0cb4_0
  requests                              2.24.0-pyh9f0ad1d_0 --> 2.27.1-pyhd8ed1ab_0
  ruamel.yaml                         0.16.6-py37h8f50634_1 --> 0.17.21-py37h5e8e339_0
  ruamel.yaml.clib                     0.2.0-py37h8f50634_1 --> 0.2.6-py37h5e8e339_0
  ruamel_yaml                     0.15.80-py37h8f50634_1001 --> 0.15.80-py37h5e8e339_1006
  send2trash                                     1.5.0-py_0 --> 1.8.0-pyhd8ed1ab_0
  setuptools                          47.3.1-py37hc8dfbb8_0 --> 59.8.0-py37h89c1867_0
  six                                   1.15.0-pyh9f0ad1d_0 --> 1.16.0-pyh6c4a22f_0
  sortedcontainers                       2.2.2-pyh9f0ad1d_0 --> 2.4.0-pyhd8ed1ab_0
  soupsieve          conda-forge/linux-64::soupsieve-2.0.1~ --> conda-forge/noarch::soupsieve-2.3.1-pyhd8ed1ab_0
  sqlite                                  3.30.1-hcee41ef_0 --> 3.37.0-h9cd32fc_0
  tblib                                          1.6.0-py_0 --> 1.7.0-pyhd8ed1ab_0
  terminado                            0.8.3-py37hc8dfbb8_1 --> 0.13.2-py37h89c1867_0
  testpath                                       0.4.4-py_0 --> 0.6.0-pyhd8ed1ab_0
  tk                                      8.6.10-hed695b0_0 --> 8.6.12-h27826a3_0
  toolz                                         0.10.0-py_0 --> 0.11.2-pyhd8ed1ab_0
  tornado                              6.0.4-py37h8f50634_1 --> 6.1-py37h5e8e339_2
  tqdm                                  4.46.1-pyh9f0ad1d_0 --> 4.63.0-pyhd8ed1ab_0
  traitlets          conda-forge/linux-64::traitlets-4.3.3~ --> conda-forge/noarch::traitlets-4.3.3-pyhd8ed1ab_2
  typing_extensions                            3.7.4.2-py_0 --> 4.1.1-pyha770c72_0
  urllib3                                       1.25.9-py_0 --> 1.26.8-pyhd8ed1ab_1
  wcwidth                                0.2.4-pyh9f0ad1d_0 --> 0.2.5-pyh9f0ad1d_2
  wheel                                         0.34.2-py_1 --> 0.37.1-pyhd8ed1ab_0
  xz                                       5.2.5-h516909a_0 --> 5.2.5-h516909a_1
  yaml                                     0.2.5-h516909a_0 --> 0.2.5-h7f98852_2
  zeromq                                   4.3.2-he1b5a44_2 --> 4.3.4-h9c3ff4c_1
  zict                                           2.0.0-py_0 --> 2.1.0-pyhd8ed1ab_0
  zipp                                           3.1.0-py_0 --> 3.7.0-pyhd8ed1ab_1
  zlib                                 1.2.11-h516909a_1006 --> 1.2.11-h36c2ea0_1013
  zstd                                     1.4.4-h6597ccf_3 --> 1.5.2-ha95c52a_0

The following packages will be DOWNGRADED:

  lzo                                    2.10-h14c3975_1000 --> 2.10-h516909a_1000


Proceed ([y]/n)? 

I personally never touch the base environment, but this is not the case for everyone. Therefore, recommending conda install -n base "conda=version" might be a better alternative, since it's much less destructive:

$ conda install -n base "conda=4.11.0"
Collecting package metadata (current_repodata.json): done
Solving environment: | WARNING conda.core.solve:_add_specs(611): pinned spec conda==4.8.2 conflicts with explicit specs.  Overriding pinned spec.
done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - conda=4.11.0


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-4.11.0               |   py37h89c1867_1         983 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         983 KB

The following packages will be UPDATED:

  conda                               4.10.3-py37h89c1867_4 --> 4.11.0-py37h89c1867_1


Proceed ([y]/n)? 

What should happen?

When the user does a conda operation with an outdated version, prompt something like:

$ conda install whatever
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.3
  latest version: 4.11.0

Please update conda by running

    $ conda install -n base "conda=4.11.0"

Additional Context

My configuration in case it's useful:

jovyan@56451335c9ab:~$ conda config --show-sources
==> /opt/conda/.condarc <==
auto_update_conda: False
channel_priority: strict
channels:
  - conda-forge
  - defaults
show_channel_urls: True

==> /home/jovyan/.condarc <==
auto_update_conda: False
channel_priority: strict
channels:
  - conda-forge
  - defaults
show_channel_urls: True

jovyan@56451335c9ab:~$ conda info -a

     active environment : None
       user config file : /home/jovyan/.condarc
 populated config files : /opt/conda/.condarc
                          /home/jovyan/.condarc
          conda version : 4.10.3
    conda-build version : not installed
         python version : 3.7.6.final.0
       virtual packages : __linux=5.13.0=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /opt/conda  (writable)
      conda av data dir : /opt/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/conda/pkgs
                          /home/jovyan/.conda/pkgs
       envs directories : /opt/conda/envs
                          /home/jovyan/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.24.0 CPython/3.7.6 Linux/5.13.0-30-generic ubuntu/20.04 glibc/2.31
                UID:GID : 1000:100
             netrc file : None
           offline mode : False

# conda environments:
#
base                  *  /opt/conda

sys.version: 3.7.6 | packaged by conda-forge | (defau...
sys.prefix: /opt/conda
sys.executable: /opt/conda/bin/python
conda location: /opt/conda/lib/python3.7/site-packages/conda
conda-build: None
conda-env: /opt/conda/bin/conda-env
user site dirs: 

CIO_TEST: <not set>
CONDA_DIR: /opt/conda
CONDA_ROOT: /opt/conda
CONDA_VERSION: 4.8.2
CURL_CA_BUNDLE: <not set>
PATH: /opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>

Metadata

Metadata

Labels

in-progressissue is actively being worked onlocked[bot] locked due to inactivitysource::communitycatch-all for issues filed by community memberstag::updaterelated to an upgrade issuetype::documentationrequest for improved documentation

Type

No type

Projects

Status

🏁 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions