I’m trying to update my Nix-packages (user packages on NixOS), but this always fails with:
$ nix-env -u
...
warning: unable to download 'https://cache.nixos.org/nar/....nar.xz': HTTP error 200 (curl error: Failure when receiving data from the peer); retrying in 309 ms
...
error 9 while decompressing xz file
If I start nix-env -u
again, it aborts with the same error-message at an other nar.
What can I do to successfully upgrade?
And can this annoying behaviour of nix-env -u
be fixed?