0

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.

  • Are you sure the problem is the qemu messages? Looks to me you have a problem with the apt cache and/or sources. Did you run apt update before trying to install? What is the output of apt policy? Please update your question with this information. – Dirk Nov 21 '19 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.