You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: when running curl https://nixos.org/nix/install | sh a second time, it does not ask for sudo, and then it fails on manipulating anything in the root file system (which requires sudo).
As a workaround, one can first delete the existing root files manually, then run curl https://nixos.org/nix/install | sh again.
The text was updated successfully, but these errors were encountered:
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?
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.The text was updated successfully, but these errors were encountered: