Lesstep
GitHub Actions · Ubuntu 26.04 · Checked November 4, 2026

"conda: command not found" on ubuntu-latest (Ubuntu 26.04): the image has no Miniconda, and $CONDA is empty

GitHub's Ubuntu 26.04 runner image does not include Miniconda. The announcement of the image lists it as "removed from the Ubuntu 26.04 image due to maintenance reasons" (runner-images #14226), and the image's documentation still lists the CONDA environment variable, with no value (Ubuntu2604-Readme.md, image 20261026.180.1). On ubuntu-24.04, Miniconda 26.9.4 is in /usr/share/miniconda and CONDA points there. So a job that ubuntu-latest moves from 24.04 to 26.04 finds no conda where $CONDA used to lead.

What it looks like

In GitHub Actions, the step after the one that put $CONDA/bin on the PATH:

Run conda env update --file environment.yml --name base
/home/runner/work/_temp/....sh: line 1: conda: command not found
Error: Process completed with exit code 127.

In Azure Pipelines (truera/trulens #2979):

line 1: conda: command not found
##[error]Bash exited with code '127'.

A step that calls $CONDA/bin/conda directly, or sources $CONDA/etc/profile.d/conda.sh, fails with line 1: /bin/conda: No such file or directory or line 1: /etc/profile.d/conda.sh: No such file or directory: with CONDA empty, the path starts at /.

Who it hits

Fix in GitHub Actions: let setup-miniconda install it

setup-miniconda sets CONDA and adds conda to the PATH for the steps after it (its code, v4.1.0), so the rest of the starter workflow can stay as it is:

    - uses: conda-incubator/setup-miniconda@v4
      with:
        miniforge-version: latest
        activate-environment: ""
    - name: Add conda to system path
      run: |
        echo $CONDA/bin >> $GITHUB_PATH

miniforge-version: latest installs Miniforge, whose default channel is conda-forge. Leave it out to get the latest Miniconda, with Anaconda's defaults channel; an organization that Anaconda contacted about the licensing of Miniconda on its build agents asked the image maintainers to switch to Miniforge (runner-images #13433). activate-environment: "" skips the test environment that the action otherwise creates.

Fix in Azure Pipelines: install Miniforge in a step

- bash: |
    curl -fsSLo "$(Agent.TempDirectory)/miniforge.sh" https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
    bash "$(Agent.TempDirectory)/miniforge.sh" -b -p "$(Agent.TempDirectory)/miniforge3"
    echo "##vso[task.prependpath]$(Agent.TempDirectory)/miniforge3/bin"
  displayName: Install Miniforge

-b runs the installer without questions, and -p sets where it goes. Later steps that name $CONDA need this path instead. The same steps work in GitHub Actions with $RUNNER_TEMP and $GITHUB_PATH; there, echo "CONDA=$RUNNER_TEMP/miniforge3" >> "$GITHUB_ENV" also lets the steps that use $CONDA run unchanged.

Or stay on 24.04 for now

runs-on: ubuntu-24.04, or vmImage: ubuntu-24.04 in Azure Pipelines, keeps Miniconda 26.9.4 and CONDA=/usr/share/miniconda. It puts the change off until you move the job to 26.04.

Other tools the 26.04 image no longer has

The same table in the announcement removes more tools that 24.04 has:

Telling it apart

Other 26.04 failures

See failed jobs from IntelliJ IDEA

Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs and steps, so the workflows that went red when ubuntu-latest moved stand out, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ubuntu is a trademark of Canonical Ltd.; Anaconda and Miniconda are trademarks of Anaconda, Inc.; Azure DevOps is a trademark of Microsoft Corporation; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, Anaconda, Inc., Microsoft or JetBrains.

More: "The ubuntu-latest label will migrate to Ubuntu 26" · setup-python's "was not found" error · GitHub Actions plugins for IntelliJ IDEA compared · 日本語