【发布时间】:2020-02-06 15:55:56
【问题描述】:
对我的图像进行位烘焙时,没有错误。但是,当我想为我的图像运行“populate_sdk”命令时,会出现一个错误,我似乎无法弄清楚如何修复。
错误:
ERROR: myimage-1.0-r0 do_populate_sdk: Unable to install packages. Command '/home/yoctouser/build/tmp/work/poky-linux/myimage/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated
(A_LOT_OF_LISTED_PACKAGES) returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
target-sdk-provides-dummy : Conflicts: coreutils
Conflicts: pkgconfig
E: Unable to correct problems, you have held broken packages.
我正在使用 Poky Zeus。
当我用谷歌搜索这个错误时,我根本没有看到任何解决方案。
删除整个 /tmp/ 文件夹没有任何作用,删除 coreutils 和 pkgconfig 只会产生更多错误。清理包和图像的状态也没有任何效果。
知道如何解决这个问题吗?
如果您想了解更多信息,请告诉我。
【问题讨论】:
-
您是否更改了 PACKAGE_CLASSES 的默认值?如果你把它放在'package_ipk'的值上呢?可能 package_deb 的测试比 ipk 的 rpm 少。
-
我输入了
PACKAGE_CLASSES ?= "package_deb"你认为我在尝试运行populate_sdk时不能使用debian 包类吗? -
我会在不推翻 PACKAGE_CLASSES 的默认设置的情况下试一试。它可以解决这个问题。
-
嗯,我会尝试使用
PACKAGE_CLASSES ?= "package_rpm"看看会发生什么。我会发布结果。泰 -
或者只是不设置这个并使用 Yocto 的默认值。我的猜测是 ipk 被更多测试和使用,但我不确定。