proot with fakeroot

397 views
Skip to first unread message

Romuald

unread,
Feb 17, 2015, 8:03:12 AM2/17/15
to proo...@googlegroups.com
Hi all,

I'm using PRoot 5.1.0 on Debian Wheezy.
I'm trying to use PRoot with fakeroot but PRoot freezes during the command 'apt-get update' :

PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"; fakeroot proot -S chroot -w /root apt-get update

I know that I can use '-0' option with PRoot to simulate root privileges.
But in my case, it's not enough because I need first to build the Chroot and keep all file properties intact.

Is that PRoot is incompatible with fakeroot by design ?

Regards,
Romuald.

ced...@reproducible.io

unread,
Feb 17, 2015, 8:55:09 AM2/17/15
to Romuald, proo...@googlegroups.com
Hello Romuald,

On Tue, Feb 17, 2015 at 05:03:12AM -0800, Romuald wrote:
> Hi all,
> I'm using PRoot 5.1.0 on Debian Wheezy.
> I'm trying to use PRoot with fakeroot but PRoot freezes during the
> command 'apt-get update' :
> PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"; fakeroot proot -S chroot
> -w /root apt-get update
> I know that I can use '-0' option with PRoot to simulate root
> privileges.

Be careful, the -S option of PRoot enables the -0 option.


> Is that PRoot is incompatible with fakeroot by design ?

I don't think so, but I have to admit I never tested this
configuration.

Please could you try (as a workaround):

fakeroot proot -R chroot -w /root apt-get update

and/or

proot -R chroot -w /root fakeroot apt-get update

This could also help me to understand what's going wrong.

Regards,
Cédric.

Romuald

unread,
Feb 17, 2015, 9:26:25 AM2/17/15
to proo...@googlegroups.com, romuald.d...@seagate.com, ced...@reproducible.io

On Tuesday, February 17, 2015 at 2:55:09 PM UTC+1, ced...@reproducible.io wrote:
Hello Romuald,

On Tue, Feb 17, 2015 at 05:03:12AM -0800, Romuald wrote:
>    Hi all,
>    I'm using PRoot 5.1.0 on Debian Wheezy.
>    I'm trying to use PRoot with fakeroot but PRoot freezes during the
>    command 'apt-get update' :
>    PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"; fakeroot proot -S chroot
>    -w /root apt-get update
>    I know that I can use '-0' option with PRoot to simulate root
>    privileges.

Be careful, the -S option of PRoot enables the -0 option.

Yes I know. I have already tried with the option '-R' or the option '-r'. I have the same result :(

 

    proot -R chroot -w /root fakeroot apt-get update


By this way, I have no problem.
But in my case, I must use only one session of fakeroot.
Indeed I have noticed that multi-session (uses of -s and -i) with fakeroot doesn't really works.
Sometimes the saved environment is corrupted. This could happen if a static program creates some files.

Thanks for your time.

ced...@reproducible.io

unread,
Feb 17, 2015, 10:29:53 AM2/17/15
to Romuald, proo...@googlegroups.com
I tried this:

fakeroot proot -S debian-7.0-x86_64 -w /root apt-get update

and got a lot of:

ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.

because fakeroot tries to propagate itself from the host system down
to the guest one, but it is not installed inside the guest rootfs.

Maybe fakeroot can't be used this way (ie. on top of proot or chroot)
since paths accessed from the guest system doesn't exist [as is] in
the host one, and vice versa.

Regards,
Cédric.

Romuald

unread,
Feb 17, 2015, 10:44:42 AM2/17/15
to proo...@googlegroups.com, romuald.d...@seagate.com, ced...@reproducible.io
In my guest, fakeroot is installed. So, I don't see these warnings.
But as you say, this points that fakeroot is not using the right librairies.

Regards,
Romuald.

Sergii Pylypenko

unread,
Apr 26, 2015, 12:47:57 PM4/26/15
to proo...@googlegroups.com
Hi. I've got this working in Debian noroot Android app.

You need to run command 'proot ... /usr/bin/fakeroot-tcp ...', at least in Debian-based distributions. Default fakeroot uses sysv shared memory, which does not work.
Reply all
Reply to author
Forward
0 new messages