[BUG] In a new WSL environment, I cannot install Claude Code.
Resolved 💬 9 comments Opened Mar 25, 2026 by xiaobai2017666 Closed May 6, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I reinstalled the WSL 1 version of Ubuntu 24.04 under Windows. So my system is clean. Executing curl -fsSL https://claude.ai/install.sh | bash returns the following:
code@W10-20240815257:~/.claude/downloads$ curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
bash: line 151: /home/code/.claude/downloads/claude-2.1.83-linux-x64: cannot execute binary file: Exec format error
uname -m
x86_64
What Should Happen?
Should be able to install Claude Code successfully.
Error Messages/Logs
Setting up Claude Code...
bash: line 151: /home/code/.claude/downloads/claude-2.1.83-linux-x64: cannot execute binary file: Exec format error
Steps to Reproduce
code@W10-20240815257:~/.claude/downloads$ curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
bash: line 151: /home/code/.claude/downloads/claude-2.1.83-linux-x64: cannot execute binary file: Exec format error
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.82
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗