aerokube / images

Browser images for Selenoid and Moon 1.x
https://aerokube.com/images/latest/
Apache License 2.0
168 stars 126 forks source link

Bug: Unable to locate package upx-ucl #635

Open Dor-bl opened 1 year ago

Dor-bl commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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