NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.75k stars 1.52k forks source link

Nix not installing on macOS 15.0 #11562

Open caldenmic opened 1 month ago

caldenmic commented 1 month ago

Platform

Additional information

I was using this command to install nix: curl -L https://nixos.org/nix/install | sh -s --

Output

Output ```log It seems the build group nixbld already exists, but with the UID 30000. This script can't really handle that right now, so I'm going to give up. You can export NIX_BUILD_GROUP_ID=30000 and re-run. We'd love to help if you need it. You can open an issue at https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md Or get in touch with the community: https://nixos.org/community ```

Priorities

Add :+1: to issues you find important.

abathur commented 1 month ago

It sounds like you've already got a Nix install (or at least remnants of one)--is there any particular reason you're trying to install it again?

caldenmic commented 1 month ago

I was using devbox but when i run the command "devbox shell" it doesn't run because it can't find /nix

abathur commented 1 month ago

This sounds like the issue/fix in this thread/comment:

Can you see if that gets it working?

nusendra commented 1 month ago

got this issues too

rtuin commented 1 month ago

This sounds like the issue/fix in this thread/comment:

Can you see if that gets it working?

Same issue here after upgrading to macOS 15.0. The two launch items sh are enabled (they were never disabled AFAIK). I'm not sure how to fix this, but can provide diagnostic data to someone who is.

nusendra commented 1 month ago

This sounds like the issue/fix in this thread/comment:

Can you see if that gets it working?

Same issue here after upgrading to macOS 15.0. The two launch items sh are enabled (they were never disabled AFAIK). I'm not sure how to fix this, but can provide diagnostic data to someone who is.

I managed to reinstall nix again, with allowed my terminal to access full disk. https://nusendra.com/post/fix-nix-after-upgrade-to-sequoia

rtuin commented 1 month ago

Thanks for the write-up! I'm sure my installation is fixed once i figure out how to force unmount the drive

rtuin commented 1 month ago

What worked for me:

This got me back up and running. No other steps were need.

nusendra commented 1 month ago

What worked for me:

  • unmount and delete the Nix Store in Disk Utility (thanks @nusendra)
  • Delete nixbld group and users (with these commands)
  • Maybe: enable full disk access to my terminal application (iTerm). Although I don't think this helped.

This got me back up and running. No other steps were need.

mine was just ran this command NIX_FIRST_BUILD_UID="3000" sh <(curl -L https://nixos.org/nix/install) (suggested by Nix error message).

Glad u got it working !

rtuin commented 1 month ago

Small update: The nix binaries (nix-shell etc) were gone after an upgrade to 15.0.1. I was able to reinstall with just NIX_FIRST_BUILD_UID="351" sh <(curl -L https://nixos.org/nix/install) this time.

abathur commented 1 month ago

@rtuin If you are using zsh, that sounds like #3616. For future reference: you don't have to reinstall after the update. The update is overwriting the shell hook, but you can just replace it. There's at least one example in the linked issue.