[yocto] do_rootfs fails, dpkg host dependency

Dallas Clement dallas.a.clement at gmail.com
Mon Jul 23 09:15:19 PDT 2012


do_rootfs is failing when I try to build core-image-minimal on a
debian squeeze box.  I am surprised it is trying to do something that
requires root privilege on the host.  Any ideas on how to get past
this?

NOTE: package core-image-minimal-1.0-r0: task do_rootfs: Started
ERROR: Function failed: do_rootfs (see
/development/dallasc/yocto/poky/build/tmp/work/qemuarmada_xp-marvell-linux-gnueabi/core-image-minimal-1.0-r0/temp/log.do_rootfs.9196
for further information)
ERROR: Logfile of failure stored in:
/development/dallasc/yocto/poky/build/tmp/work/qemuarmada_xp-marvell-linux-gnueabi/core-image-minimal-1.0-r0/temp/log.do_rootfs.9196
Log data follows:
| ERROR: Function failed: do_rootfs (see
/development/dallasc/yocto/poky/build/tmp/work/qemuarmada_xp-marvell-linux-gnueabi/core-image-minimal-1.0-r0/temp/log.do_rootfs.9196
for further information)
| dpkg-scanpackages: info: Wrote 7 entries to output Packages file.
| dpkg-scanpackages: info: Wrote 1306 entries to output Packages file.
| dpkg-scanpackages: info: Wrote 21 entries to output Packages file.
| dpkg-scanpackages: info: Wrote 7 entries to output Packages file.
| cat: /development/dallasc/yocto/poky/build/tmp/sysroots/x86_64-linux/etc/apt/apt.conf.sample:
No such file or directory
| E: Could not open lock file /var/lib/apt/lists/lock - open (13
Permission denied)
| E: Unable to lock the list directory
| E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
| E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
NOTE: package core-image-minimal-1.0-r0: task do_rootfs: Failed
ERROR: Task 8 (/home/dallasc/development/yocto/poky/meta/recipes-core/images/core-image-minimal.bb,
do_rootfs) failed with exit code '1'



More information about the yocto mailing list