Open messis opened 2 years ago
You'll have to follow the uninstall instructions before reinstalling it: https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos
In the future: You don't have to reinstall. The update is overwriting the shell hook, but you can just replace it. See #3616 for more.
Hit the same issue. Maybe the installed could link to uninstall docs when it fails?
My "fix" was to rm -rf /nix/
, move away /etc/zshrc.backup-before-nix
and /etc/bashrc.backup-before-nix
and re-run the installer
After updating macOS to macOS 12.6 (21G115) nix was not working.
Ran
sh <(curl -L https://nixos.org/nix/install)
Fixed these files as requested: /etc/bashrc /etc/bashrc.backup-before-nix /etc/zshrc.backup-before-nix
Ran
sh <(curl -L https://nixos.org/nix/install)
again, got:~~> Installing Nix
---- sudo execution ------------------------------------------------------------ I am executing:
to copy the basic Nix files to the new store at /nix/store
cp: cannot overwrite directory /nix/store/cfc8xcp3q1ccx9wrfkbagia95w6rsvsh-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Versions/Current with non-directory ./store/cfc8xcp3q1ccx9wrfkbagia95w6rsvsh-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Versions/Current cp: cannot overwrite directory /nix/store/cfc8xcp3q1ccx9wrfkbagia95w6rsvsh-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers with non-directory ./store/cfc8xcp3q1ccx9wrfkbagia95w6rsvsh-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers cp: cannot overwrite directory /nix/store/cfc8xcp3q1ccx9wrfkbagia95w6rsvsh-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Modules with non-directory ./store/cfc8xcp3q1ccx9wrfkbagia95w6rsvsh-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Modules cp: cannot overwrite directory /nix/store/h9z5lncphgm9if86wxrfqg7w7fv7khbh-libkrb5-1.19.3/sbin with non-directory ./store/h9z5lncphgm9if86wxrfqg7w7fv7khbh-libkrb5-1.19.3/sbin cp: cannot overwrite directory /nix/store/vzbnm6afkdcbgb57npl06gk7rsap4sfy-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Versions/Current with non-directory ./store/vzbnm6afkdcbgb57npl06gk7rsap4sfy-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Versions/Current cp: cannot overwrite directory /nix/store/vzbnm6afkdcbgb57npl06gk7rsap4sfy-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers with non-directory ./store/vzbnm6afkdcbgb57npl06gk7rsap4sfy-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers cp: cannot overwrite directory /nix/store/vzbnm6afkdcbgb57npl06gk7rsap4sfy-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Modules with non-directory ./store/vzbnm6afkdcbgb57npl06gk7rsap4sfy-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Modules cp: cannot overwrite directory /nix/store/w5n081lpdyhc5aa69cq59j9s1h626jgj-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Versions/Current with non-directory ./store/w5n081lpdyhc5aa69cq59j9s1h626jgj-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Versions/Current cp: cannot overwrite directory /nix/store/w5n081lpdyhc5aa69cq59j9s1h626jgj-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Headers with non-directory ./store/w5n081lpdyhc5aa69cq59j9s1h626jgj-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Headers cp: cannot overwrite directory /nix/store/w5n081lpdyhc5aa69cq59j9s1h626jgj-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Modules with non-directory ./store/w5n081lpdyhc5aa69cq59j9s1h626jgj-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Modules
---- oh no! -------------------------------------------------------------------- Jeeze, something went wrong. If you can take all the output and open an issue, we'd love to fix the problem so nobody else has this issue.
:(
We'd love to help if you need it.
You can open an issue at https://github.com/nixos/nix/issues
Or feel free to contact the team: