11-05-2015 02:38 PM
I have petalinux 2014.4 installed on RHEL 6.6 on VirtualBox with Guest Additions. When I create a new project and issue a petalinux-build command, I get this error in the build.log:
[ALL ] dpkg: error: unable to open/create triggers lockfile '<my_home_dir>/test_proj/build/linux/rootfs/stage/var/lib/dpkg/triggers/Lock': Permission denied [ERROR] E: Sub-process /opt/pkg/petalinux-v2014.4-final/tools/packagemanager/bin/dpkg returned an error code (2) [ERROR] make : *** [.pkg_stagefs] Error 255
There doesn't appear to be a Lock file in the triggers directory, but the triggers directory happens to have root:root ownership while all but one other directory in the dpkg folder are me:proj_name. There is also a tmp.ci folder in the dpkg folder with root:root ownership.
I confirmed via 'id' that my groups include: vboxsf, proj_name, pb. The linux administrators are running PowerBroker, thus the pb group. This means I can't just go change ownership of the triggers folder. I had an admin help me do that, but then it got changed back to root:root next time I ran petalinux-build.
The petalinux install was done using me:vboxsf, so all of its files seem to have those permissions.
Any thoughts on why that triggers folder would be created with root:root?
11-05-2015 06:08 PM
I have recently experienced a similar error (I don't recall the exact syntax). Is the path in the message correct? The problem occurred after I renamed my PetaLinux project directory.
11-06-2015 08:21 AM
I replaced what was actually printed in the error message with <my_home_dir>. My command sequence before seeing the rror was this:
petalinux-create -t project -n test_proj --template zynq
cd test_proj petalinux-build