Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Unable to locate package upx-ucl #635

Open
Dor-bl opened this issue Aug 6, 2023 · 2 comments
Open

Bug: Unable to locate package upx-ucl #635

Dor-bl opened this issue Aug 6, 2023 · 2 comments

Comments

@Dor-bl
Copy link
Contributor

Dor-bl commented Aug 6, 2023

when running the build Android image, I came across the below Error:
Building on Ubuntu Server 22.04.2

4.511 E: Unable to locate package upx-ucl
------
Dockerfile:5
--------------------
   4 |
   5 | >>> RUN \
   6 | >>>     apt-get update && \
   7 | >>>     apt-get install -y upx-ucl libx11-dev && \
   8 | >>>     cd /devtools && \
   9 | >>>     GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" && \
  10 | >>>     upx /devtools/devtools
  11 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update &&     apt-get install -y upx-ucl libx11-dev &&     cd /devtools &&     GOOS=linux GOARCH=amd64 go build -ldflags=\"-s -w\" &&     upx /devtools/devtools" did not complete successfully: exit code: 100
@vania-pooh
Copy link
Member

@Dor-bl yep, for some reason they removed this package. We are only using it to minify our binaries, so it's safe to comment installation of upx-ucl and upx command call in Dockerfile for now.

@jeremie-code
Copy link
Contributor

Commenting those line in the Dockerfile in folder android, allow the script to finish and build image:

RUN \
    apt-get update && \
    # apt-get install -y upx-ucl libx11-dev && \
    cd /devtools && \
    GOOS=linux GOARCH=amd64 go build -ldflags="-s -w"
    # && \ upx /devtools/devtools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants