Skip to content

Error while loading /usr/sbin/dpkg-split: No such file or directory #760

@maretodoric

Description

@maretodoric

Hello,

yesterday i managed to build a project and push it to dockerhub with success. Today I'm unable to do so as it's failing build with follwing error:

#0 45.98 Get:40 http://deb.debian.org/debian bullseye/main armel libxslt1-dev armel 1.1.34-4+deb11u1 [329 kB]
#0 46.21 Get:41 http://deb.debian.org/debian bullseye/main armel libxslt1.1 armel 1.1.34-4+deb11u1 [220 kB]
#0 47.37 debconf: delaying package configuration, since apt-utils is not installed
#0 47.61 Fetched 19.0 MB in 10s (1995 kB/s)
#0 47.70 Error while loading /usr/sbin/dpkg-split: No such file or directory
#0 47.70 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#0 47.71 dpkg: error processing archive /var/cache/apt/archives/base-files_11.1+deb11u5_armel.deb (--unpack):
#0 47.71  dpkg-deb --control subprocess returned error exit status 1
#0 47.74 Errors were encountered while processing:
#0 47.74  /var/cache/apt/archives/base-files_11.1+deb11u5_armel.deb
#0 47.82 E: Sub-process /usr/bin/dpkg returned an error code (1)

It's failing on part:

RUN apt update && apt upgrade -y && apt install --no-install-recommends -y bluez

Whole Dockerfile is

FROM python:3.9-bullseye

ARG TVERSION

SHELL ["/bin/bash", "-ec"]

RUN apt update && apt upgrade -y && apt install --no-install-recommends -y bluez
RUN python3 -m venv /opt/venv && \
        source /opt/venv/bin/activate && \
        pip install --upgrade --extra-index-url=https://www.piwheels.org/simple pip TheengsGateway==${TVERSION}

COPY chroot /

CMD source /opt/venv/bin/activate && exec /opt/venv/start.sh

Build started with:

docker buildx build --push --platform linux/arm/v6 -t $REPO/${IMAGENAME}-${arch//\//-}:$VERSION -t $REPO/${IMAGENAME}-${arch//\//-}:latesat --build-arg TVERSION=${TVERSION} .

Same is failing with platform linux/arm/v7.
Not sure what happened, any help would be highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions