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 installation not working on MacOS #7615

Open
herveschweitzer opened this issue Jan 17, 2023 · 1 comment
Open

NIX installation not working on MacOS #7615

herveschweitzer opened this issue Jan 17, 2023 · 1 comment

Comments

@herveschweitzer
Copy link

Describe the bug

Installation on MacOS is not working, I get the below error

--- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/dscl . -create /Users/_nixbld1 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit

---- oh no! --------------------------------------------------------------------
Oh no, 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:
 - Matrix: #nix:nixos.org
 - IRC: in #nixos on irc.libera.chat
 - twitter: @nixos_org
 - forum: https://discourse.nixos.org

Below the detail of my environment

DBI-LT-HER2:nix her$ sh <(curl -L https://nixos.org/nix/install)
DBI-LT-HER2:nix her$ uname -a
Darwin DBI-LT-HER2.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64 x86_64
DBI-LT-HER2:nix her$

If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

nix-env --version output

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

@abathur
Copy link
Member

abathur commented Jan 17, 2023

https://discussions.apple.com/thread/252518458 suggests this might be an intermittent/flaky issue if your system is part of a domain?

I'd recommend following the uninstall instructions and repeating the install a few times to see if it works.

Edit: see also #5566 (comment) which can help pare back the number of times the installer tries to sudo.

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

3 participants