元虚拟化摇滚分支无法找到docker包

时间:2018-03-27 15:36:38

标签: docker yocto

我正在尝试在rocko分支上构建docker,但是我收到以下错误:

Unable to install packages. Command
 '/media/storage/updater/rocko_poky/test_docker/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated docker
 packagegroup-core-boot run-postinsts' returned 100: Reading package
 lists... Building dependency tree...
 E: Unable to locate package docker

我的构建配置是:

BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "i586-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.2"
TUNE_FEATURES        = "m32 i586"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "rocko:6b744113ad3e564d1cb05411816b103d99fd84dc"
meta-oe              
meta-networking      
meta-filesystems     
meta-python          = "rocko:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta-virtualization  = "rocko:bd77388f31929f38e7d4cc9c711f0f83f563007e"

我正在建造的图像

  

芯图像 - 最小

添加到local.conf的唯一更改是:

 DISTRO_FEATURES_append=“ virtualization” 
 CORE_IMAGE_EXTRA_INSTALL += "docker"

我正在运行构建的机器是

  

Ubuntu 16.04.4 LTS(GNU / Linux 4.4.0-116-generic x86_64)

在我看来,docker .deb文件无法构建。

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

这似乎是package_deb类中的一个错误。我在这里遇到了同样的问题并切换到ipk修复了它。

即。将这样的设置放入local.conf: PACKAGE_CLASSES =“package_ipk”