codex - 💡(How to fix) Fix False positive "Could not find bubblewrap on PATH" warning on Ubuntu 22.04 when bwrap is present and successfully executed

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…

Codex CLI v0.135.0 reports:

Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager.
Codex will use the bundled bubblewrap in the meantime.

However, bwrap is installed, available on PATH, and Codex itself successfully executes it.

Root Cause

Codex CLI v0.135.0 reports:

Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager.
Codex will use the bundled bubblewrap in the meantime.

However, bwrap is installed, available on PATH, and Codex itself successfully executes it.

Code Example



---

Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager.
Codex will use the bundled bubblewrap in the meantime.

---

$ command -v bwrap
/usr/bin/bwrap

$ bwrap --version
bubblewrap 0.6.1

---

bwrap --ro-bind / / --proc /proc --dev /dev --tmpfs /tmp /bin/sh -c 'echo bwrap-ok'

---

bwrap-ok

---

access("/usr/bin/bwrap", X_OK) = 0

---

execve("/usr/bin/bwrap",
["/usr/bin/bwrap",
 "--unshare-user",
 "--unshare-net",
 "--ro-bind",
 "/",
 "/",
 "/bin/true"],
 ...)

---

clone(... CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWNET|SIGCHLD) = <pid>

---

Codex could not find bubblewrap on PATH.
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

v0.135.0

What subscription do you have?

pro

Which model were you using?

gpt-5.5 xhigh

What platform is your computer?

ubuntu

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

Summary

Codex CLI v0.135.0 reports:

Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager.
Codex will use the bundled bubblewrap in the meantime.

However, bwrap is installed, available on PATH, and Codex itself successfully executes it.

Environment

  • Codex CLI: 0.135.0
  • OS: Ubuntu 22.04.3 LTS
  • bubblewrap: 0.6.1
$ command -v bwrap
/usr/bin/bwrap

$ bwrap --version
bubblewrap 0.6.1

Verification

Manual bubblewrap test succeeds:

bwrap --ro-bind / / --proc /proc --dev /dev --tmpfs /tmp /bin/sh -c 'echo bwrap-ok'

Output:

bwrap-ok

Evidence from strace

Codex checks and executes /usr/bin/bwrap:

access("/usr/bin/bwrap", X_OK) = 0
execve("/usr/bin/bwrap",
["/usr/bin/bwrap",
 "--unshare-user",
 "--unshare-net",
 "--ro-bind",
 "/",
 "/",
 "/bin/true"],
 ...)

Namespace creation succeeds:

clone(... CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWNET|SIGCHLD) = <pid>

No obvious EPERM/EACCES failure is present.

Expected behavior

No bubblewrap warning should be shown when:

  • /usr/bin/bwrap exists
  • access(..., X_OK) succeeds
  • Codex successfully executes bwrap

Actual behavior

Codex still displays:

Codex could not find bubblewrap on PATH.

even though the binary is found and executed.

This appears to be a false positive or misleading startup warning.

What steps can reproduce the bug?

.

What is the expected behavior?

No response

Additional information

No response

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…

FAQ

Expected behavior

No bubblewrap warning should be shown when:

  • /usr/bin/bwrap exists
  • access(..., X_OK) succeeds
  • Codex successfully executes bwrap

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix False positive "Could not find bubblewrap on PATH" warning on Ubuntu 22.04 when bwrap is present and successfully executed