I'm trying to create a docker image to compile python libraries for arm on a x86 instance.
This is the process I'm following:
1) Install quemu:
sudo apt-get install qemu qemu-user-static qemu-user binfmt-support
2) Get a docker image for raspberry pi:
sudo docker pull balenalib/raspberrypi3
3) Run the image in interactive mode:
sudo docker run -it resin/raspberrypi3-debian /bin/bash
Now the error is occurring on the container at this line:
sudo apt-get install python3-dev libffi-dev libssl-dev -y
The complete error is:
root@255c2b870446:/# sudo apt-get install python3-dev libffi-dev libssl-dev -y
Unknown host QEMU_IFLA type: 50
Unknown host QEMU_IFLA type: 51
Unknown host QEMU_IFLA type: 50
Unknown host QEMU_IFLA type: 51
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-dev
E: Unable to locate package libffi-dev
E: Unable to locate package libssl-dev
I know is installing the libraries over the running container is not the right approach, I'm doing it this way to test them one by one an get a sense on how this will work and the common issues.
apt update
before trying to install? What is the output ofapt policy
? Please update your question with this information. – Dirk Nov 21 '19 at 20:37