简体   繁体   中英

Unknown host QEMU_IFLA type: 50 intalling python on docker

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.

this will work:

apt-get update && apt-get install python3-dev libffi-dev libssl-dev -y

you need to make that as a routine to run update before installing new packages on Docker Containers and you do not need also to run it with sudo since you are already the root in this container

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM