Ubuntu 18 nixpkgs conda - 重定位错误libc.so.6符号_dl_exception_create,版本GLIBC_PRIVATE ld-linux-x86-64.so.2链接时间参考

时间:2018-06-06 16:46:59

标签: linux conda nix ubuntu-18.04 nixpkgs

设置:

  • system:"x86_64-linux"
  • 主持人:Linux 4.15.0-22-generic, Ubuntu, 18.04 LTS (Bionic Beaver)
  • 多用户?:no
  • sandbox:no
  • 版本:nix-env (Nix) 2.0.2
  • 渠道(aeug):"nixpkgs-18.09pre140731.c29d2fde74d"
  • nixpkgs:/home/aeug/.nix-defexpr/channels/nixpkgs

运行:

nix-shell -p conda --run "conda-shell"

结果:

bash: /etc/profile.d/vte.sh: No such file or directory
mkdir: relocation error: /usr/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

编辑 我必须允许我的用户访问/etc/profile.d/vte.sh

但结果是:

./conda-shell 

** (process:20829): WARNING **: 08:04:35.617: chrootenv doesn't stack!
** Message: 08:04:35.628: Requires Linux version >= 3.19 built with CONFIG_USER_NS
** Message: 08:04:35.628: Run: sudo sysctl -w kernel.unprivileged_userns_clone=1

** (process:20831): ERROR **: 08:04:35.629: main: unshare: Operation not permitted
Trace/breakpoint trap (core dumped)

所以我发出

kernel.unprivileged_userns_clone=1

但结果仍然相同。

如果我这样做

sudo ./conda-shell 
mkdir: relocation error: /usr/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
stat: relocation error: /usr/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
 id: relocation error: /usr/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
除了" nix-shell"还有nix-env但是

nix-env -qaP .\*conda.\*
nixpkgs.conda                   conda-shell-4.3.31
nixpkgs.python27Packages.conda  python2.7-conda-4.3.16
nixpkgs.python36Packages.conda  python3.6-conda-4.3.16

nix-env -i conda 
error: selector 'conda' matches no derivations

为什么在nix-env中有一个conda pkgs可用但是-i不存在?

如何调试根本原因以及解决问题的方法?

0 个答案:

没有答案