Docker Community Forums

Share and learn in the Docker community.

Dockerfile error non-zero code 100 /bin/sh

Hi,
i’m a newbie of the docker world and I don’t really know if this is the correct section.
I have installed docker on a Raspberry with Raspbian OS. The docker version is:

Docker version 18.09.0, build 4d60db4

I have also found this Dockerfile:

    FROM raspbian/stretch

ARG INSTALL_DIR="/opt/intel/inference_engine_vpu_arm"

COPY sources.list /etc/apt/sources.list

RUN apt-get -y update \
    && DEBIAN_FRONTEND=noninteractive && apt-get -y --allow-unauthenticated upgrade && apt-get autoremove && \
    apt-get install -y --allow-unauthenticated \
	apt-transport-https \
        build-essential \
	cmake \
        cpio \
        lsb-release \
        pciutils \
        python3.5 \
        python3.5-dev \
        python3-pip \
        python3-setuptools \
	ffmpeg \
	libjpeg-dev \
        libtiff5-dev \
        libjasper-dev \
        libpng12-dev \
        libavcodec-dev \
        libavformat-dev \
        libswscale-dev \
        libv4l-dev \
        libxvidcore-dev \
        libx264-dev \
        libgtk2.0-dev \
        libgtk-3-dev \
        libatlas-base-dev \
        gfortran \
        libgstreamer1.0-0 \
        libgstreamer-plugins-base1.0-0

RUN usermod -a -G users "$(whoami)"

COPY inference_engine_vpu_arm $INSTALL_DIR 

RUN sed -i "s|<INSTALLDIR>|$INSTALL_DIR|" $INSTALL_DIR/bin/setupvars.sh && \
    echo "source $INSTALL_DIR/bin/setupvars.sh" >> $HOME/.bashrc

RUN ["/bin/bash", "-c", "source $INSTALL_DIR/bin/setupvars.sh && /bin/bash $INSTALL_DIR/install_dependencies/install_NCS_udev_rules.sh"]

RUN pip3 install numpy

RUN apt autoremove -y && \
    rm -rf  /var/lib/apt/lists/*

CMD ["/bin/bash"]

That should create an image of a system with OpenVino installed. If you don’t know Openvino, you can find some info here:

When I try to build the image, when the system do the first RUN command, I have this error:

E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c apt-get -y update..... returned a non-zero code: 100

I think that the problem is related to some command in dockerfile and not related to OpenVino itself.
Do you have any idea?

Thanks