images icon indicating copy to clipboard operation
images copied to clipboard

Bug: Unable to locate package upx-ucl

Open Dor-bl opened this issue 1 year ago • 2 comments

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

Dor-bl avatar Aug 06 '23 13:08 Dor-bl

@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.

vania-pooh avatar Aug 06 '23 15:08 vania-pooh

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

jeremie-code avatar Aug 07 '23 06:08 jeremie-code