Closed PhracturedBlue closed 1 year ago
When I tried to run: ./build-linux.py --target armv7-unknown-linux-gnueabihf on an x86_64 host, I got failure with the message:
./build-linux.py --target armv7-unknown-linux-gnueabihf
image-gcc> WARNING: The following packages cannot be authenticated! image-gcc> libgdbm3 libmpfr4 libsigsegv2 gawk libisl10 libcloog-isl4 libmpc3 m4 image-gcc> libtext-unidecode-perl libxml-namespacesupport-perl libxml-sax-base-perl ucf image-gcc> libxml-sax-perl texinfo xz-utils autoconf autotools-dev automake binutils image-gcc> libbison-dev bison cpp gcc g++ make libtimedate-perl libdpkg-perl dpkg-dev image-gcc> build-essential gcc-multilib libtool image-gcc> E: There are problems and -y was used without --force-yes
I fixed this via:
diff --git a/cpython-unix/base.Dockerfile b/cpython-unix/base.Dockerfile index 38f2c74..46b6f99 100644 --- a/cpython-unix/base.Dockerfile +++ b/cpython-unix/base.Dockerfile @@ -22,6 +22,7 @@ RUN for s in debian_jessie debian_jessie-updates debian-security_jessie/updates; done > /etc/apt/sources.list && \ ( echo 'quiet "true";'; \ echo 'APT::Get::Assume-Yes "true";'; \ + echo 'APT::Get::force-yes "true";'; \ echo 'APT::Install-Recommends "false";'; \ echo 'Acquire::Check-Valid-Until "false";'; \ echo 'Acquire::Retries "5";'; \ diff --git a/cpython-unix/build.cross.Dockerfile b/cpython-unix/build.cross.Dockerfile index 4b95123..3b9468c 100644 --- a/cpython-unix/build.cross.Dockerfile +++ b/cpython-unix/build.cross.Dockerfile @@ -22,6 +22,7 @@ RUN for s in debian_stretch debian_stretch-updates debian-security_stretch/updat done > /etc/apt/sources.list && \ ( echo 'quiet "true";'; \ echo 'APT::Get::Assume-Yes "true";'; \ + echo 'APT::Get::force-yes "true";'; \ echo 'APT::Install-Recommends "false";'; \ echo 'Acquire::Check-Valid-Until "false";'; \ echo 'Acquire::Retries "5";'; \
This is fixed on the main branch.
When I tried to run:
./build-linux.py --target armv7-unknown-linux-gnueabihf
on an x86_64 host, I got failure with the message:I fixed this via: