Skip to content

Error: sudo: installer: command not found #1292

@AttilaT

Description

@AttilaT

Description:
Installer sudo command fails

Action version:
v6

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Tested on python 3.14

Repro steps:
Run this step on a self hosted MacOS runner in AWS

  - name: Setup Python
    id: setup-python
    uses: actions/setup-python@v6
    with:
      python-version: '3.14'

Expected behavior:
Install python as normal

Actual behavior:
Installation fails with:

Installed versions
  Version 3.14 was not found in the local cache
  Version 3.14 is available for downloading
  Download from "https://github.com/actions/python-versions/releases/download/3.14.3-21673711214/python-3.14.3-darwin-arm64.tar.gz"
  Extract downloaded archive
  /usr/bin/tar xz -C /Users/runner/action-runner-JZDdfeogcq/actions-runner/_work/_temp/eeae3256-84af-4321-bf29-275bb385fe68 -f /Users/runner/action-runner-JZDdfeogcq/actions-runner/_work/_temp/d573d1e7-f489-4698-85f5-bdbae45532cc
  Execute installation script
  Check if Python hostedtoolcache folder exist...
  Install Python binaries from prebuilt package
  Error: sudo: installer: command not found
  Error: The process '/bin/bash' failed with exit code 1

A workaround is if one adds /usr/bin/ in PATH

  - name: Set path for Python setup step
    shell: bash
    run: echo "/usr/bin" >> $GITHUB_PATH

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions