Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init --system not available in Mamba 2 CLI #3691

Open
3 tasks done
adalator opened this issue Dec 16, 2024 · 0 comments
Open
3 tasks done

init --system not available in Mamba 2 CLI #3691

adalator opened this issue Dec 16, 2024 · 0 comments

Comments

@adalator
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

init system

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

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

Describe your issue

In Mamba 1.5.11 you could use mamba init --system to set up mamba for all users of a system (it added a script at /etc/profile.d/conda.sh I believe.). In Mamba 2.0.5 it seems you can't do this. You can set up mamba for the current user using mamba shell init but not for all users unless I'm missing something.

This was quite a useful feature on multi-user systems. Was it intentionally removed? It seems it is part of the conda CLI still (https://docs.conda.io/projects/conda/en/latest/commands/init.html) and the mamba documentation does imply the mamba CLI should be the same or similar (https://docs.conda.io/projects/conda/en/latest/commands/init.html). Any info appreciated!

mamba info / micromamba info

libmamba version : 2.0.5
          mamba version : 2.0.5
           curl version : libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 zstd/1.5.6 libssh2/1.11.1 nghttp2/1.64.0
     libarchive version : libarchive 3.7.7 zlib/1.3.1 liblzma/5.6.3 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.6
       envs directories : /opt/miniforge/envs
          package cache : /opt/miniforge/pkgs
                          /root/.mamba/pkgs
            environment : base
           env location : /opt/miniforge
      user config files : /root/.mambarc
 populated config files : /opt/miniforge/.condarc
       virtual packages : __unix=0=0
                          __linux=4.18.0=0
                          __glibc=2.28=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /opt/miniforge
               platform : linux-64

Logs

mamba init --system
The following arguments were not expected: --system init
Run with --help for more information.

environment.yml

No response

~/.condarc

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant