Search code examples
yoctobitbake

do_rootfs: Can't install packagegroup-core-x11-utils-1.0-r40@all: no package provides xserver-nodm-init


At first I run the command to see my layers:

$bitbake-layers show-layers
layer                 path                                  priority
meta                  .../poky-krogoth-15.0.0/meta             5
meta-poky             .../poky-krogoth-15.0.0/meta-poky        5
meta-yocto-bsp        .../poky-krogoth-15.0.0/meta-yocto-bsp   5
meta-oe               .../meta-openembedded/meta-oe            6

and build my image:

bitbake core-image-sato

everything is OK,I found the meta-oe layer is useless. So I delete it:

bitbake-layers remove-layer .../meta-openembedded/meta-oe

and build it again:

$bitbake core-image-sato

it show error:

ERROR: core-image-sato-1.0-r0 do_rootfs: Unable to install packages.

Command '/buildarea/ddu/poky-krogoth-15.0.0/build-beaglebone/tmp/sysroots/x86_64-linux/usr/bin/smart --log-level=warning --data-dir=/buildarea/ddu/poky-krogoth-15.0.0/build-beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/rootfs/var/lib/smart install -y packagegroup-core-ssh-dropbear@all packagegroup-core-x11-sato-games@beaglebone packagegroup-core-x11-base@all smartpm@cortexa8hf_neon psplash@cortexa8hf_neon packagegroup-core-boot@beaglebone packagegroup-base-extended@beaglebone rpm@cortexa8hf_neon packagegroup-core-x11-sato@beaglebone locale-base-en-us@cortexa8hf_neon locale-base-en-gb@cortexa8hf_neon' returned 1:

Loading cache... Updating cache...

################################## [100%]

Computing transaction...error: Can't install packagegroup-core-x11-utils-1.0-r40@all: no package provides xserver-nodm-init

ERROR: core-image-sato-1.0-r0 do_rootfs: Function failed: do_rootfs ERROR: Logfile of failure stored in: /buildarea/ddu/poky-krogoth-15.0.0/build-beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.52174 ERROR: Task 9 (/buildarea/ddu/poky-krogoth-15.0.0/meta/recipes-sato/images/core-image-sato.bb, do_rootfs) failed with exit code '1'

Why it said that no package provides xserver-nodm-init?

$find ../meta -name xserver-nodm-init*
../meta/recipes-graphics/x11-common/xserver-nodm-init.bb
../meta/recipes-graphics/x11-common/xserver-nodm-init

Solution

  • First of all. Why do you think meta-oe is useless?

    And why do you want to delete it? It does no harm?

    The general rule is. If it does not break, Do not fix it. Like you said. Put everything back and it will work.