2016-05-17 154 views
1

起初我運行命令來查看我的層:do_rootfs:無法安裝[email protected]:沒有包提供的xserver-nodm-INIT

$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 

,並建立自己的形象:

bitbake core-image-sato 

一切都OK了,我找到了元OE層是無用的。所以我刪除它:

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

並重新構建它:

$bitbake core-image-sato 

它顯示錯誤:

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 [email protected] [email protected] [email protected] [email protected]_neon [email protected]_neon [email protected] [email protected] [email protected]_neon [email protected] [email protected]_neon [email protected]_neon' returned 1:

Loading cache... Updating cache...

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

Computing transaction...error: Can't install [email protected]: 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'

爲什麼說沒有包提供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 

回答

-1

首先。你爲什麼認爲meta-oe是無用的?

爲什麼要刪除它?它沒有壞處?

一般的規則是。如果它沒有中斷,請不要修復它。 就像你說的。把所有東西都放回來,它會起作用。

+0

開始時,我想爲我的映像安裝一些軟件包,這些軟件包依賴於meta-oe層,因此我將該圖層添加到我的bblayers.conf中。最後我發現我沒有使用這些軟件包,所以我刪除了meta-oe層並重建了圖像,構建系統拋出錯誤。 – dudengke

+0

核心形象佐藤依靠它 –

+0

佐藤形象不依賴meta-oe – jku

2

由於meta-oe目前取代了某些X11啓動組件,所以如果您在bblayers.conf中使用meta-oe構建X11,然後決定刪除meta,則幾乎需要刪除TMPDIR -oe(正如你所做的那樣)。但是,如果您現在只是刪除TMPDIR,但是而不是您的sstate-cache,然後再試一次,那麼它會將所有內容都恢復到您從sstate快速到達的位置,而無需重新編譯所有內容,並且問題應該得到解決。

什麼薈萃OE做是不可取的,有開放的修復一個bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=5546

它分配給我,我很傷心地說,我還沒有來得及到目前爲止解決它;它似乎也不是其他任何人的優先事項。

相關問題