claude-code - 💡(How to fix) Fix [Bug] Sandbox initialization fails on Linux: missing apply-seccomp helper in v2.1.98+ [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46168Fetched 2026-04-11 06:27:20
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Root Cause

Root cause: apply-seccomp helper not found anywhere in the native install directory. Present in v2.1.97, missing in v2.1.98+.

Fix Action

Fix / Workaround

Workaround: ln -sf ~/.local/share/claude/versions/2.1.97 ~/.local/bin/claude

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description

Title: Sandbox failed to initialize on Linux with bwrap 0.11.0 (v2.1.98+)

Description:

All bash commands fail with "Sandbox failed to initialize" on v2.1.98 and v2.1.100 native installs on Linux. Even echo test fails. Rolling back to v2.1.97 fixes it.

Environment:

  • OS: Linux 6.12 (Debian 13, amd64)
  • Install: native binary at ~/.local/share/claude/versions/
  • bwrap: /usr/bin/bwrap 0.11.0
  • kernel.unprivileged_userns_clone = 1
  • CONFIG_SECCOMP=y, CONFIG_SECCOMP_FILTER=y
  • No AppArmor denials for bwrap

Root cause: apply-seccomp helper not found anywhere in the native install directory. Present in v2.1.97, missing in v2.1.98+.

Workaround: ln -sf ~/.local/share/claude/versions/2.1.97 ~/.local/bin/claude

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 2.1.97
  • Feedback ID: e4ee42d0-22e9-4ad8-b893-9d0c388ab6f3

Errors

[]

extent analysis

TL;DR

The issue can likely be resolved by ensuring the apply-seccomp helper is present in the native install directory, potentially by reverting to a version where it is known to exist, such as v2.1.97.

Guidance

  • Verify that the apply-seccomp helper is indeed missing from the native install directory in versions v2.1.98 and later.
  • Check if the workaround provided, creating a symbolic link to a version known to contain the apply-seccomp helper (e.g., ln -sf ~/.local/share/claude/versions/2.1.97 ~/.local/bin/claude), resolves the sandbox initialization issue.
  • Investigate why the apply-seccomp helper is missing in newer versions and if there's an official fix or update that includes this helper.
  • Consider reaching out to the developers or checking the project's issue tracker for any discussions related to the missing apply-seccomp helper in newer versions.

Example

No specific code snippet is necessary for this issue, as the problem and potential workaround are related to file presence and symbolic linking rather than code changes.

Notes

The provided workaround is specific and may not be applicable or desirable for all users, especially if they require features or fixes present in versions newer than v2.1.97. The long-term solution would involve ensuring the apply-seccomp helper is included in the native install directory of newer versions.

Recommendation

Apply the workaround by creating a symbolic link to a version known to contain the apply-seccomp helper, as this provides a immediate, though potentially temporary, solution to the sandbox initialization issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING