我正在使用Gentoo框,我想在不使用root帐户或sudo的情况下创建基于Debian的chroot环境.
这似乎可以使用fakeroot和fakechroot等工具,但到目前为止我还没有取得任何成功.这是我用于Precise的命令:
fakeroot fakechroot /usr/sbin/debootstrap --variant=fakechroot precise ./precise http://archive.ubuntu.com/ubuntu/
它始终失败并出现相同的错误:
I: Installing core packages... W: Failure trying to run: chroot precise dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.24_amd64.deb W: See precise/debootstrap/debootstrap.log for details
debootstrap.log的内容是:
dpkg: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
我不知道为什么SELinux被拉进来以及为什么它没有正确处理这种依赖.此外,我也试图建立Wheezy和Jessie.同样的错误.
这是怎么回事?版本:
debootstrap-1.0.67
fakeroot-1.19
fakechroot-2.17.2
kernel-3.19.6