ubuntu install opencode question #6468

Open
opened 2026-02-16 18:04:19 -05:00 by yindo · 1 comment
Owner

Originally created by @XJPeng12 on GitHub (Jan 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

docker pull ubuntu:22.04

docker pull ubuntu:22.04
docker run -itd
--name opencode
-p 4096:4096
ubuntu:22.04
/bin/bash

docker exec -it opencode /bin/bash
mkdir -p /app
#cp /root/opencode-dev.zip 7196ea56696b:/app
cd /app
apt update && apt install -y curl unzip
unzip opencode-dev.zip
curl -fsSL https://bun.sh/install | bash

source ~/.bashrc

bun --version # 1.3.6

cd /app/opencode-dev

bun install

my question:
bun install v1.3.6 (d530ed99)
🚚 ghostty-web... error: failed applying patch file: EINVAL: Invalid argument (read())
error: failed to patch package: ghostty-web@0.3.0

$ husky
file:///app/idgp-dev/node_modules/.bun/husky@9.1.7/node_modules/husky/bin.js:14
;(o.scripts ||= {}).prepare = 'husky'
^

SyntaxError: Unexpected token '='


Thank you so much for your help! I really appreciate the time you took to look into this, and your response helped me resolve the issue.

Any reply is greatly appreciated — thank you so much!

Plugins

No response

OpenCode version

dev

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

ubuntu22.04

Terminal

No response

Originally created by @XJPeng12 on GitHub (Jan 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description docker pull ubuntu:22.04 docker pull ubuntu:22.04 docker run -itd \ --name opencode \ -p 4096:4096 \ ubuntu:22.04 \ /bin/bash docker exec -it opencode /bin/bash mkdir -p /app #cp /root/opencode-dev.zip 7196ea56696b:/app cd /app apt update && apt install -y curl unzip unzip opencode-dev.zip curl -fsSL https://bun.sh/install | bash source ~/.bashrc bun --version # 1.3.6 cd /app/opencode-dev bun install my question: bun install v1.3.6 (d530ed99) 🚚 ghostty-web... error: failed applying patch file: EINVAL: Invalid argument (read()) error: failed to patch package: ghostty-web@0.3.0 $ husky file:///app/idgp-dev/node_modules/.bun/husky@9.1.7/node_modules/husky/bin.js:14 ;(o.scripts ||= {}).prepare = 'husky' ^ SyntaxError: Unexpected token '=' ------------- Thank you so much for your help! I really appreciate the time you took to look into this, and your response helped me resolve the issue. Any reply is greatly appreciated — thank you so much! ### Plugins _No response_ ### OpenCode version dev ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System ubuntu22.04 ### Terminal _No response_
yindo added the bugdocs labels 2026-02-16 18:04:19 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8188: [build from src] "bun install" Failed in Docker with version 26.1.4

Both issues report the exact same error: error: failed applying patch file: EINVAL: Invalid argument (read()) when patching ghostty-web@0.3.0 during bun install in a Docker/Ubuntu environment.

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #8188: [build from src] "bun install" Failed in Docker with version 26.1.4 Both issues report the exact same error: `error: failed applying patch file: EINVAL: Invalid argument (read())` when patching `ghostty-web@0.3.0` during `bun install` in a Docker/Ubuntu environment. Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6468