Bug: Unable to locate package upx-ucl
Dor-bl opened this issue · 2 comments
Dor-bl commented
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
@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
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