chroot中的Python安装失败

时间:2016-02-28 15:19:58

标签: python linux ubuntu anaconda chroot

我需要在chroot中安装Miniconda Python:

chroot $chroot_dir wget -q https://repo.continuum.io/miniconda/Miniconda3-3.9.1-Linux-x86_64.sh -O /tmp/miniconda.sh                                                                                    
chroot $chroot_dir chmod +x /tmp/miniconda.sh
chroot $chroot_dir /tmp/miniconda.sh -f -b -p /opt/conda

但是安装不完整我得到了:

/opt/conda/pkgs/python-3.4.2-0/bin/python: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory
cannot execute native linux-64 binary, output from 'uname -a' is:

如果我启动最终图像并手动运行命令,我可以毫无问题地安装Miniconda。

chroot命令有问题吗?我该如何解决这个问题?

FYI :chroot环境是使用vmbuilder创建的(即debootstrap):

vmbuilder kvm ubuntu -o -v --suite precise --arch amd64 --rootsize 9216 --user username --pass password --hostname $dname --addpkg libjson-perl --addpkg liburi-encode-perl --addpkg curl --addpkg acpid --addpkg openssh-server --addpkg wordpress --addpkg memcached --addpkg php5-memcache --addpkg nfs-common --addpkg dmidecode --addpkg unzip --addpkg mysql-server --addpkg libstring-shellquote-perl --tmpfs - --domain mydomain.com --ip 10.1.1.2 --execscript="./$me"

0 个答案:

没有答案