Open trusktr opened 4 years ago
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-install-with-curl-fails-if-nix-already-exists/5363/4
A standard install ie. without --daemon
is owned by a single (non root) user. Which means running the installer a second time should not need sudo at all. Can you describe more about the state of the existing installation when you run into this?
I marked this as stale due to inactivity. → More info
Basically the details are here: https://discourse.nixos.org/t/nix-install-with-curl-fails-if-nix-already-exists/5363
TLDR: when running
curl https://nixos.org/nix/install | sh
a second time, it does not ask forsudo
, and then it fails on manipulating anything in the root file system (which requiressudo
).As a workaround, one can first delete the existing root files manually, then run
curl https://nixos.org/nix/install | sh
again.