构建图像时出现此错误:
NOTE: Installing the following packages: linux-examples-stm32mp1-userfs m4projects-stm32mp1-userfs
ERROR: Unable to install packages. Command '/local/STM32MP15-Ecosystem-v1.1.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-10-09/build-openstlinuxeglfs-<image>/tmp-glibc/work/<image>-openstlinux_eglfs-linux-gnueabi/st-image-userfs/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated linux-examples-stm32mp1-userfs m4projects-stm32mp1-userfs' returned 100:
Reading package lists...
Building dependency tree...
E: Unable to locate package m4projects-stm32mp1-userfs
我根本不需要这些软件包。因此,我在<image>.bb
文件中添加了以下内容:
PACKAGE_INSTALL_remove = " \
m4projects-stm32mp1-userfs \
linux-examples-stm32mp1-userfs \
"
但这还不够,因为错误是相同的。
因此,由于st-image-userfs
请求了这些软件包,因此我尝试将其删除:
IMAGE_INSTALL_remove = "st-image-userfs"
什么都没有改变。 因此,如何摆脱那些软件包?