San*_*ejű 37 curl software-installation 20.04
我想在 ubunt 20.04 上运行以下命令:
sh <(curl -L https://nixos.org/nix/install) --daemon
Run Code Online (Sandbox Code Playgroud)
我得到的是这样的:
sh <(curl -L https://nixos.org/nix/install) --daemon
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4046 100 4046 0 0 16782 0 --:--:-- --:--:-- --:--:-- 98k
downloading Nix 2.5.1 binary tarball for x86_64-linux from 'https://releases.nixos.org/nix/nix-2.5.1/nix-2.5.1-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.KPhkYw21Nn'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file
Warning: /tmp/nix-binary-tarball-unpack.KPhkYw21Nn/nix-2.5.1-x86_64-linux.tar.x
Warning: z: No such file or directory
0 27.1M 0 1103 0 0 10753 0 0:44:05 --:--:-- 0:44:05 10813
curl: (23) Failure writing output to destination
/dev/fd/63: failed to download 'https://releases.nixos.org/nix/nix-2.5.1/nix-2.5.1-x86_64-linux.tar.xz'
Run Code Online (Sandbox Code Playgroud)
当我查看时,/dev/fd/
我看到一堆标记为无法访问的文件:
我猜这和下载失败有关系。我对吗?我能做什么来对抗它?我只是一个“普通”的 ubuntu 用户,这种东西超出了我的 ubuntu 知识。
更新:即使我以 root 身份运行整个过程,结果仍然相同:
San*_*ejű 85
经过很长时间的研究,我发现了一个有用的提示。
基本上快速卷曲是没有用的。正确卸载。得到适当的卷曲,一切都会变得魅力十足。
$ sudo snap remove curl
$ sudo apt install curl
Run Code Online (Sandbox Code Playgroud)