nix icon indicating copy to clipboard operation
nix copied to clipboard

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.

Open Potterpurpp opened this issue 1 year ago • 1 comments

Platform

  • [ ] Linux:
  • [x] macOS
  • [ ] WSL

Additional information

I try to run this command sh <(curl -L https://nixos.org/nix/install)

Output

Output

~~> Setting up the build group nixbld

---- oh no! --------------------------------------------------------------------
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.

Potterpurpp avatar Oct 09 '24 08:10 Potterpurpp

Are you trying to reinstall to fix a specific problem? What macOS version are you running, and did you recently upgrade?

If you're running into errors that mention nixbld users when you run Nix commands, you may just need to run the migration procedure mentioned in the first post of this issue:

  • #10892

abathur avatar Oct 09 '24 17:10 abathur

The solution to this issue is to simply run the command that is stated on the error message:

export NIX_BUILD_GROUP_ID=30000

MatiFalcone avatar Feb 02 '25 05:02 MatiFalcone

for i in {1..32}; do sudo dscl . delete /Users/_nixbld$i; done
sudo dscl . delete /Groups/nixbld

then try again

ak4bento avatar Mar 19 '25 05:03 ak4bento