[Bug 1001129] Re: fakeroot in amd64 lacking support for i386
ELIPTUS
eliptus+launchpad at gmail.com
Fri May 26 01:02:01 UTC 2017
Since this is the top hit for this issue in Google, I'm documenting my
workaround here for others:
LD_LIBRARY_PATH="/usr/lib/i386-linux-gnu/libfakeroot" fakeroot
Basically, when fakeroot adds x86_64, lib64, and lib32 to the search
paths, but omits i386:
: %; fakeroot -- ${SHELL} -c 'echo ${LD_LIBRARY_PATH}'
/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot
Manually adding it solves the issue:
: %; LD_LIBRARY_PATH="/usr/lib/i386-linux-gnu/libfakeroot" fakeroot -- ${SHELL} -c 'echo ${LD_LIBRARY_PATH}'
/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot:/usr/lib/i386-linux-gnu/libfakeroot
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to fakeroot in Ubuntu.
https://bugs.launchpad.net/bugs/1001129
Title:
fakeroot in amd64 lacking support for i386
Status in fakeroot package in Ubuntu:
Confirmed
Status in fakeroot package in Debian:
New
Bug description:
fakeroot installation in precise amd64 lacks support for i386
binaries. This is to the lacking of the library /usr/lib/i386-linux-
gnu/libfakeroot/libfakeroot-sysv.so. Trying to solve this problem
installing fakeroot:i386 (which uninstall fakeroot:amd64) makes
imposible to use it with 64 bits chroot when using fakechroot and
debootstrap to create an i386 system. To be clear, i've installed
ia32-libs, so 32 bits binaries work well in my system. Some examples
of the fakeroot malfunction:
=== Example with fakeroot:amd64 ===:
$ fakechroot fakeroot debootstrap --variant=buildd --arch=i386 precise /home/dariemp/Escritorio/Chroot_i386 http://archive.ubuntu.com/ubuntu
.........
W: Failure trying to run: chroot /home/dariemp/Escritorio/Chroot_i386
dpkg --force-depends --install /var/cache/apt/archives/base-
files_6.5ubuntu6_i386.deb /var/cache/apt/archives/base-
passwd_3.5.24_i386.deb
$ fakechroot fakeroot chroot /home/dariemp/Escritorio/Chroot_i386
dpkg --force-depends --install /var/cache/apt/archives/base-
files_6.5ubuntu6_i386.deb /var/cache/apt/archives/base-
passwd_3.5.24_i386.deb
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
dpkg: error: requested operation requires superuser privilege
=== Example with fakeroot:i386 ===:
$ fakechroot fakeroot debootstrap --variant=buildd --arch=i386 precise
/home/dariemp/Escritorio/Chroot_i386 http://archive.ubuntu.com/ubuntu
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
E: debootstrap can only run as root
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fakeroot/+bug/1001129/+subscriptions
More information about the foundations-bugs
mailing list