From strace -s 4096 -f fakeroot fakechroot -e chroot env chroot $(readlink -f root) wget -q -O/dev/null https://localhost:9999/ 2>&1 | grep libgnutls.so
one obtains (on amd64) [pid 28109] open("/home/me/root/usr/local/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28109] open("/home/me/root/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28109] open("/home/me/root/usr/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = 3 Is this the right answer ? The results depend on the relative order of fakeroot and fakechroot, and if fakechroot leads, wether the newroot path is absolute : me@here:~$ strace -s 4096 -f fakeroot fakechroot chroot essai-sans wget -q -O/dev/null https://localhost:9999/README.txt 2>&1 | grep libgnutls.so [pid 28164] open("/usr/lib/x86_64-linux-gnu/libfakeroot/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28164] open("/home/me/root/usr/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28164] open("/home/me/root/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28164] open("/usr/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = 3 me@here:~$ strace -s 4096 -f fakechroot fakeroot chroot root wget -q -O/dev/null https://localhost:9999/ 2>&1 | grep libgnutls.so [pid 28206] open("root/usr/lib/x86_64-linux-gnu/libfakeroot/tls/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/libfakeroot/tls/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/libfakeroot/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/libfakeroot/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib64/libfakeroot/tls/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib64/libfakeroot/tls/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib64/libfakeroot/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib64/libfakeroot/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib32/libfakeroot/tls/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib32/libfakeroot/tls/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib32/libfakeroot/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib32/libfakeroot/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/local/lib/tls/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/local/lib/tls/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/local/lib/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/local/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/lib/x86_64-linux-gnu/tls/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/lib/x86_64-linux-gnu/tls/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/lib/x86_64-linux-gnu/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/tls/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/tls/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/x86_64/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("root/usr/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("/usr/lib/x86_64-linux-gnu/libfakeroot/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("/home/me/root/usr/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("/home/me/root/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28206] open("/usr/me/root/libgnutls.so.26", O_RDONLY) = 3 me@here:~$ ls -AF root/usr/lib/x86_64-linux-gnu/libgnutls.so.26 root/usr/lib/x86_64-linux-gnu/libgnutls.so.26@ was not found by the run-time dynamic loader. me@here:~$ strace -s 4096 -f fakechroot fakeroot chroot /home/me/root wget -q -O/dev/null https://localhost:9999/ 2>&1 | grep libgnutls.so [pid 28250] open("/home/me/root/usr/local/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28250] open("/home/me/root/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28250] open("/home/me/root/usr/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = 3 (the supposed correct answer) Is it of any help to solve the issue ? Regards, JH Chatenet -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org