Open jcrites opened 2 years ago
If you're seeing this error you've presumably already got a Nix Store volume from a previous install. A previous change to drop an install-dependency on rsync (#5150) has made this step non-idempotent for now.
You'll probably want to follow the uninstall instructions before reinstalling it: https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos
For future reference: if you use zsh
and you're just in this situation because nix commands disappeared from your PATH after a macOS update, you're running into #3616 and don't need to reinstall Nix--you just need to restore the shell hook to /etc/zshrc after the update.
I had that same issue trying to install Nix on version 2.11.0 The installation crashed on the same point.
Yet I found an interim solution: On my other Mac (Macbook Air) I had installed Nix in version 2.10.3 which worked flawlessly. On the second try installing nix on the Mac Book Pro I tried it by using specifically that version and it finally worked.
You can find these versions here: https://releases.nixos.org/?prefix=nix/nix-2.10.3/
After that just run sudo nix upgrade-nix
to upgrade to the newest version (which is 2.11.0 at this time).
I have the same issue when I've tried to re-install nix after it went missing...
Edit: I was able to re-install after uninstalling it as suggested by https://github.com/NixOS/nix/issues/7013#issuecomment-1239701234
Google led me here after experiencing: cp: cannot create regular file '/nix/store/3wqasl97rjiza3vd7fxjnvli2w9l30mk-nix-2.17.0/bin/nix': Text file busy
because I tried to run the installer on a preexisting installation. Despite the installer's assurance that it's going to be extra careful, it panics just because Nix is already there?
What about:
- Make sure your computer doesn't already have Nix. If it does, I will show you instructions on how to clean up your old install.
?
- system: `"x86_64-linux"`
- host os: `Linux 6.1.41-1-MANJARO, Manjaro Linux, noversion, rolling`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.17.0`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
I ended up cleaning up after it by using https://nixos.org/manual/nix/stable/installation/uninstall.
Describe the bug
Steps To Reproduce
The Nix installation script fails. Representative failures:
Full Installation Record