Skip to content

[BUG] In a new WSL environment, I cannot install Claude Code. #38644

Description

@xiaobai2017666

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

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