设置:
- 系统:
"x86_64-linux"
- 主机操作系统:
Linux 4.15.0-22-generic, Ubuntu, 18.04 LTS (Bionic Beaver)
- 多用户?:
no
- 沙盒:
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 不存在?
您如何调试根本原因以及有哪些方法可以解决它?