Install doesn't downloads $filename on linux #3296

Closed
opened 2026-02-16 17:39:33 -05:00 by yindo · 9 comments
Owner

Originally created by @Rom888 on GitHub (Dec 4, 2025).

Originally assigned to: @rekram1-node on GitHub.

It looks like it only works on windows:
https://github.com/sst/opencode/blob/45bc7a6a9d2560650881be0e554a124b4f925ae5/install#L245

Originally created by @Rom888 on GitHub (Dec 4, 2025). Originally assigned to: @rekram1-node on GitHub. It looks like it only works on windows: https://github.com/sst/opencode/blob/45bc7a6a9d2560650881be0e554a124b4f925ae5/install#L245
yindo closed this issue 2026-02-16 17:39:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 4, 2025):

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

  • #3501: Installer should check if unzip is present (similar install script issues on Linux)
  • #2301: no check if unzip is installed (similar unzip dependency issue)
  • #4064: curl can't install (related curl install script issues)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 4, 2025): This issue might be a duplicate of existing issues. Please check: - #3501: Installer should check if `unzip` is present (similar install script issues on Linux) - #2301: no check if unzip is installed (similar unzip dependency issue) - #4064: `curl` can't install (related curl install script issues) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 13, 2025):

You're saying that the curl script doesn't work on linux? can u tell me more about your os and arch?

@rekram1-node commented on GitHub (Dec 13, 2025): You're saying that the curl script doesn't work on linux? can u tell me more about your os and arch?
Author
Owner

@Rom888 commented on GitHub (Dec 14, 2025):

Right,
Ubuntu 24.04
amd64

@Rom888 commented on GitHub (Dec 14, 2025): Right, Ubuntu 24.04 amd64
Author
Owner

@rekram1-node commented on GitHub (Dec 14, 2025):

can you share your actual error message or issue you encounter?

The script definitely works on linux, but maybe it is missing something specific for your system

@rekram1-node commented on GitHub (Dec 14, 2025): can you share your actual error message or issue you encounter? The script definitely works on linux, but maybe it is missing something specific for your system
Author
Owner

@Rom888 commented on GitHub (Dec 15, 2025):

FROM ubuntu:24.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
  curl \
  ca-certificates \
  tar \
  less \
  tree \
  ripgrep && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*

ARG VERSION=v1.0.137
ENV VERSION=$VERSION
ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install"
RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
RUN ./install.sh

CMD ["/bin/bash"]

podman build -t opencode -f opencode.dockerfile .

...
STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
https://raw.githubusercontent.com/sst/opencode/v1.0.137/install
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9726  100  9726    0     0   1840      0  0:00:05  0:00:05 --:--:--  2148
--> 855e58476676
STEP 8/9: RUN ./install.sh

Installing opencode version: v1.0.137

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2
@Rom888 commented on GitHub (Dec 15, 2025): ``` FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ ca-certificates \ tar \ less \ tree \ ripgrep && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* ARG VERSION=v1.0.137 ENV VERSION=$VERSION ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install" RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh RUN ./install.sh CMD ["/bin/bash"] ``` podman build -t opencode -f opencode.dockerfile . ``` ... STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh https://raw.githubusercontent.com/sst/opencode/v1.0.137/install % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9726 100 9726 0 0 1840 0 0:00:05 0:00:05 --:--:-- 2148 --> 855e58476676 STEP 8/9: RUN ./install.sh Installing opencode version: v1.0.137 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2 ```
Author
Owner

@rekram1-node commented on GitHub (Dec 16, 2025):

Hm try now maybe?

@rekram1-node commented on GitHub (Dec 16, 2025): Hm try now maybe?
Author
Owner

@rekram1-node commented on GitHub (Dec 16, 2025):

well i just updated it, maube in like 10 min or so try it

@rekram1-node commented on GitHub (Dec 16, 2025): well i just updated it, maube in like 10 min or so try it
Author
Owner

@Rom888 commented on GitHub (Dec 16, 2025):

Tried with dev branch:

STEP 4/9: ARG VERSION=dev
--> 73d9a6f4ee29
STEP 5/9: ENV VERSION=$VERSION
--> 7711dea7310e
STEP 6/9: ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install"
--> d8a52ec2bdcd
STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
https://raw.githubusercontent.com/sst/opencode/dev/install
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9865  100  9865    0     0   1854      0  0:00:05  0:00:05 --:--:--  2587
--> 890a8738b6d0
STEP 8/9: RUN ./install.sh

Installing opencode version: dev
######################################################################## 100.0%

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2
@Rom888 commented on GitHub (Dec 16, 2025): Tried with dev branch: ``` STEP 4/9: ARG VERSION=dev --> 73d9a6f4ee29 STEP 5/9: ENV VERSION=$VERSION --> 7711dea7310e STEP 6/9: ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install" --> d8a52ec2bdcd STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh https://raw.githubusercontent.com/sst/opencode/dev/install % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9865 100 9865 0 0 1854 0 0:00:05 0:00:05 --:--:-- 2587 --> 890a8738b6d0 STEP 8/9: RUN ./install.sh Installing opencode version: dev ######################################################################## 100.0% gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2 ```
Author
Owner

@rekram1-node commented on GitHub (Dec 16, 2025):

Tested w/ your dockerfile, should be fixed now

@rekram1-node commented on GitHub (Dec 16, 2025): Tested w/ your dockerfile, should be fixed now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3296