Fix Claude CLI installation by switching to Debian base images#58
Open
hack2spider wants to merge 3 commits intoheytcass:mainfrom
Open
Fix Claude CLI installation by switching to Debian base images#58hack2spider wants to merge 3 commits intoheytcass:mainfrom
hack2spider wants to merge 3 commits intoheytcass:mainfrom
Conversation
The Claude CLI binary requires glibc symbols (posix_getdents) not available in Alpine's musl libc. This switches the base images from Alpine to Debian bookworm to resolve the installation error. Changes: - build.yaml: Use Debian-based Home Assistant images - Dockerfile: Replace apk with apt-get, update package names Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The run.sh script was still using Alpine's apk package manager which doesn't exist on Debian. Changed to apt-get. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ttyd is not available in Debian repos, so download the binary directly from GitHub releases instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apktoapt-getProblem
The Claude CLI binary requires glibc symbols (
posix_getdents) that are not available in Alpine's musl libc, causing the installation to fail with:Changes
build.yaml:
ghcr.io/home-assistant/*-base:3.19toghcr.io/home-assistant/*-base-debian:bookwormDockerfile:
apk addwithapt-get installyqinstallation via pip (not in Debian repos)run.sh:
apkcommands withapt-getTesting
Tested on Home Assistant OS with amd64 architecture. Add-on builds and runs successfully.
🤖 Generated with Claude Code