Closed
Description
I'm trying to use cross with Docker to develop for Raspberry Pi. I have created a Dockerfile in order to recreate the enviroment but am not able to install the needed Rust library.
FROM rustembedded/cross:arm-unknown-linux-gnueabihf
RUN apt-get update
RUN dpkg --add-architecture armhf && \
apt-get update
RUN apt-get install --assume-yes zlib1g:armhf
RUN apt-get install --assume-yes pcscd:armhf libpcsclite-dev:armhf
When installing pcscd i get the error:
#10 9.531 Setting up python2.7-minimal:armhf (2.7.17-1\~18.04ubuntu1.8) ...
#10 9.572 /usr/bin/python2.7: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
#10 9.573 dpkg: error processing package python2.7-minimal:armhf (--configure):
#10 9.573 installed python2.7-minimal:armhf package post-installation script subprocess returned error exit status 127
#10 9.573 dpkg: dependency problems prevent configuration of python2.7:armhf:
#10 9.573 python2.7:armhf depends on python2.7-minimal (= 2.7.17-1~18.04ubuntu1.8); however:
#10 9.573 Package python2.7-minimal:armhf is not configured yet.
#10 9.573
#10 9.573 dpkg: error processing package python2.7:armhf (--configure):
#10 9.573 dependency problems - leaving unconfigured
#10 9.573 Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
#10 9.606 Errors were encountered while processing:
#10 9.606 python2.7-minimal:armhf
#10 9.606 python2.7:armhf
#10 9.629 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
executor failed running [/bin/sh -c apt-get install --assume-yes python2.7:armhf]: exit code: 100