Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix install with curl fails if /nix already exists #3309

Open
trusktr opened this issue Jan 10, 2020 · 3 comments
Open

Nix install with curl fails if /nix already exists #3309

trusktr opened this issue Jan 10, 2020 · 3 comments

Comments

@trusktr
Copy link
Contributor

trusktr commented Jan 10, 2020

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 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.

@nixos-discourse
Copy link

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

@LnL7
Copy link
Member

LnL7 commented Jan 10, 2020

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?

@stale
Copy link

stale bot commented Feb 14, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants