The bug here is that apt calls "dpkg" from the non-rootdir for the "--print-foreign-architectures" call.
A easy workaround is to set: apt.apt_pkg.config.set("dir::bin::dpkg", "/bin/false") in your script until apt is properly fixed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/885895 Title: linaro-image-tools (hwpack-create) broken on oneiric 64-bits To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-image-tools/+bug/885895/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs