yocto - 由于软件包安装导致的 do_rootfs 错误
问题描述
我正在编写自己的 Distro 层(以及我自己的图像配方),但是当我尝试构建图像时,我不断收到此错误:
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:
packagegroup-base-extended : Depends: packagegroup-base but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
如何解决这个问题?
解决方案
确保将包组包含在映像配方中,而不是发行版配置中。
例如:
$ git diff
diff --git a/meta-my-distro/conf/distro/include/my-distro-base.inc b/meta-my-distro/conf/distro/include/my-distro-base.inc
index f4dba77..36ca349 100644
--- a/meta-my-distro/conf/distro/include/my-distro-base.inc
+++ b/meta-my-distro/conf/distro/include/my-distro-base.inc
@@ -15,13 +15,6 @@
-DISTRO_EXTRA_RDEPENDS += "\
- packagegroup-my-distro-misc \
-"
diff --git a/meta-my-distro/recipes-core/images/my-distro-image-base.bb b/meta-my-distro/recipes-core/images/my-distro-image-base.bb
index c896c6c..f83853d 100644
--- a/meta-my-distro/recipes-core/images/my-distro-image-base.bb
+++ b/meta-my-distro/recipes-core/images/my-distro-image-base.bb
@@ -11,5 +11,12 @@
+IMAGE_INSTALL_append += "\
+ packagegroup-my-distro-misc \
+"
推荐阅读
- java - Android Studio 3.2 更新后,我所有的 FAB 图标都很小而且在右上角
- java - 在不使用剪贴板的情况下从活动窗口中获取突出显示的文本
- sql - 如何创建内存优化的表副本?
- javascript - html datalist open list onclick 显示列表功能
- mqtt - 命令不会从 FIWARE JSON 代理转发到代理 MQTT
- c# - Linq 'where' clause returning CS1929
- python - send an image (as numpy array) 'requests.post'
- abap - WSAECONNRESET:对等 Netweaver 重置连接
- batch-file - 批处理:“%~1”有效,但“%~*”是语法错误。如何找到等效的命令?
- bash - awk 脚本从 txt 文件中读取数据