I want đồ sộ lập cập the following on ubunt đôi mươi.04:

sh <(curl -L https://nixos.org/nix/install) --daemon

what I got is this:

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' đồ sộ '/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 đồ sộ create the tệp tin 
Warning: /tmp/nix-binary-tarball-unpack.KPhkYw21Nn/nix-2.5.1-x86_64-linux.tar.x
Warning: z: No such tệp tin or directory
  0 27.1M    0  1103    0     0  10753      0  0:44:05 --:--:--  0:44:05 10813
curl: (23) Failure writing output đồ sộ destination
/dev/fd/63: failed đồ sộ tải về 'https://releases.nixos.org/nix/nix-2.5.1/nix-2.5.1-x86_64-linux.tar.xz'

When I have a look at /dev/fd/ I see a bunch of files marked inaccessible:

I guess this has something đồ sộ vì thế with the failure đồ sộ tải về. Am I right? What can I vì thế against it? I am just a 'normal' ubuntu user, this kind of stuff exceeds my ubuntu-knowledge.

UPDATE: Even if I lập cập the whole thing as root the result remains the same:

asked Jan 14, 2022 at 17:29

7

After a very long research I found a useful hint.

Can't write đồ sộ a hidden path using Curl

Basically snap curl is useless. Uninstall it properly. Get the proper apt curl, and everything works lượt thích a charm.

$ sudo snap remove curl
$ sudo apt install curl

learner

1,9642 gold badges13 silver badges19 bronze badges

answered Jan 15, 2022 at 16:40

8

In my case

$ sudo snap remove curl

didn't worked. So I had đồ sộ remove it via apt-get lượt thích these:

$ sudo apt-get remove curl

Than installed it again.

$ sudo apt install curl

My problems solved.

answered Apr 5, 2023 at 8:17

1

I faced the same error and below I shared how đồ sộ fix.

First notice either you're logged-in as root@your-server-ip user or some other user@ip lượt thích debian@your-server-ip trương mục.

In my case, I was logged-in as debian@vps-1a7c9 and try đồ sộ lập cập command using sudo and without sudo but got error curl: (23) Failure writing output đồ sộ destination

How đồ sộ Fix: run command sudo su đồ sộ login as root this will change the current user đồ sộ root user and terminals will look lượt thích root@your-server-ip.

Even this user debian@your-server-ip is an administrator trương mục, but terminal return curl error, and after changing it đồ sộ root@ all errors gone and commands worked. Means you're required đồ sộ login as root.

answered Feb 23, 2023 at 20:28

1

You must log in đồ sộ answer this question.

Not the answer you're looking for? Browse other questions tagged

.