Skip to content

Installer misidentifies glibc Ubuntu as musl when musl tooling is also installed #10667

Description

@vsahav

Describe the bug

The installer exits "musl-based linux detected" when on a glibc system (Ubuntu LTS)

Expected Behavior

It recognizes that the host uses glibc and updates AWS CLI.

Current Behavior

The installer exits with “musl-based Linux detected.”

Reproduction Steps

  1. Install Ubuntu's musl package alongside glibc.
  2. Run aws update.

Possible Solution

Alter the check_libc function slighty: accept a positive glibc check before looking for musl loader files.

check_libc() {
    [ "$PLATFORM" = "linux" ] || return 0

    local libc_version
    if command -v getconf >/dev/null 2>&1; then
      libc_version=$(getconf GNU_LIBC_VERSION 2>/dev/null || true)
      case "$libc_version" in
        "glibc "*) return 0 ;;
      esac
    fi

    if compgen -G '/lib/ld-musl-*' >/dev/null 2>&1 || \
       compgen -G '/lib64/ld-musl-*' >/dev/null 2>&1; then
      error 1 "musl-based Linux detected. AWS CLI v2 binaries require glibc; install from source instead."
    fi
  }

alternatively add a flag to imply "i know what im doing" that short circuits the check to true.

Additional Information/Context

No response

CLI version used

aws-cli/2.36.49 Python/3.14.6 Linux/7.0.0-31-generic exe/x86_64.ubuntu.26

Environment details (OS name and version, etc.)

Ubuntu 26.04.1 LTS x86_64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions