Skip to content

Micromamba is ignoring override_virtual_packages specified in .mambarc file #4125

@rmittal87

Description

@rmittal87

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

archspec

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I have this problem with Conda as well, without using Mamba

Describe your issue

override_virtual_packages defined in .mambarc is parsed by micromamba but not applied to virtual packages such as archspec, glibc, or cuda.

Even with valid syntax and confirmed config loading, micromamba continues to report autodetected virtual package values. Environment-variable overrides (e.g. CONDA_OVERRIDE_ARCHSPEC) do work, which suggests the issue is specific to config-based overrides.

Create a .mambarc with virtual package overrides:

channels:

  • conda-forge
    override_virtual_packages:
    archspec: "1 x86_64_v4"
    cuda: "13.1"
    glibc: "2.15"

mamba info / micromamba info

micromamba info | sed -n '/virtual packages/,+10p'

virtual packages :
  __glibc=2.17=0
  __archspec=1=x86_64_v3

Logs

environment.yml

~/.condarc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions