Skip to content

PKG BinFMT not working #4157

@SIEMsational25

Description

@SIEMsational25

The used debian image for testing Qemu 4.2.0 is not working, since the Debian structure got changed.
(debian@sha256:d828cca5497a2519da9c6d42372066895fa28a69f1e8a46a38ce8f750bd2adf0)

The following issue will occur when trying to build the packages:

> [qemu 2/2] RUN apt-get update && apt-get install -y qemu-user-static &&     mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64 &&     mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm &&     mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le &&     mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x &&     mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 &&     mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 &&     rm /usr/bin/qemu-*-static:
15.25 * For more information please read https://wiki.debian.org/UsrMerge.
15.25 *
15.25 ******************************************************************************
15.25 
15.25 
15.26 dpkg: error processing archive /var/cache/apt/archives/base-files_13.8_amd64.deb (--unpack):
15.26  new base-files package pre-installation script subprocess returned error exit status 1
15.30 Errors were encountered while processing:
15.30  /var/cache/apt/archives/base-files_13.8_amd64.deb
15.38 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile:3
--------------------
   2 |     FROM debian@sha256:d828cca5497a2519da9c6d42372066895fa28a69f1e8a46a38ce8f750bd2adf0 AS qemu
   3 | >>> RUN apt-get update && apt-get install -y qemu-user-static && \
   4 | >>>     mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64 && \
   5 | >>>     mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm && \
   6 | >>>     mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le && \
   7 | >>>     mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x && \
   8 | >>>     mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 && \
   9 | >>>     mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 && \
  10 | >>>     rm /usr/bin/qemu-*-static
  11 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y qemu-user-static &&     mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64 &&     mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm &&     mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le &&     mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x &&     mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 &&     mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 &&     rm /usr/bin/qemu-*-static" did not complete successfully: exit code: 100

See: https://wiki.debian.org/UsrMerge


Tested:

FROM debian:stable AS qemu
RUN apt-get update && apt-get install -y \
	qemu-user-static

-> Works fine

FROM debian:bookworm AS qemu
RUN apt-get update && apt-get install -y \
	qemu-user-static

-> Works aswell

FROM debian@sha256:d828cca5497a2519da9c6d42372066895fa28a69f1e8a46a38ce8f750bd2adf0 AS qemu
RUN apt-get update && apt-get install -y \
    usrmerge \
	qemu-user-static && \
    mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64 && \
    mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm && \
    mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le && \
    mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x && \
    mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 && \
    mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 && \
    rm /usr/bin/qemu-*-static

-> does not work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions