[BUG] In a new WSL environment, I cannot install Claude Code.
Status Fixed / completed
Reported on v2.1.83
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 9 comments · opened Mar 25, 2026 · 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_
9 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
+1 for me
WSL1: 4.4.0-26100-Microsoft
Works on 2.1.81
Broken on 2.1.83 with Exec format error
As a workaround, the plugin/executable installation can be pinned to version 2.1.81 for WSL1 users.
I am having the exact same issue with WSL1. Works on 2.1.81, broken on 2.1.83 and 2.1.84 (cannot execute binary file: Exec format error))
I encountered the same issue on WSL1. A temporary workaround is to explicitly invoke the linker to run the program:
/lib64/ld-linux-x86-64.so.2 ~/.claude/downloads/claude-2.1.85-linux-x64I experience the same issue; the install script is hard-coded to only install the current stable version, which is broken. I must set
"DISABLE_AUTOUPDATER": "1"insettings.jsonto stop automatic upgrades.Same here fwiw
Revert to an older working version 2.1.81:
Would be nice if there is a CI check so we know new versions don't break our existing setups.
You can use the latest version of Claude Code under WSL1 with this method. Thanks to the original poster for providing the solution.
@meng-luo
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.