-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 macOS install failed -UID clash- (Jamf conterolled enterprise machine) #9682
Comments
Also FYI:
|
That sudo prompt is brutal, but I don't think it's directly causing the failure. It sounds like you already have a user with the same 301 UID (see #6153). Speaking generally, the way around is to either delete that user/users if you no longer use whatever software/services that need them, or try to manually identify a new UID range that doesn't conflict (there's an overview of how to find a new range in #6153 (comment)). On macOS I think this has to be between UIDs 200-400, and Apple/macOS use a fair share of 200-299. Since a few artifacts are already set up, follow the uninstall instructions before trying anything below: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos I usually wouldn't recommend a third-party installer on this official issue tracker, but you may want to consider using the detsys installer (https://github.com/DeterminateSystems/nix-installer) for two specific reasons:
If you can't free up the default UIDs and are not comfortable using a third-party installer, there are 3 potential options:
|
The community unstable installer has been updated, so that's now an option. Release at https://github.com/nix-community/nix-unstable-installer/releases/tag/nix-2.20.0pre20231220_75e10e4. Should be able to invoke like:
|
First of all Travis @abathur thanks for your great help. I will attempt to follow, one or more of, them. Clearly I should have searched here for the error message as I can now see there are many issues raised for this error.
I can see that it looks like many, maybe in particular enterprise managed, Macs generally have UIDs up until a small number of 30x already taken. Maybe it might be a good idea to revisit the current nix, macOS, install approach? Not sure what the max UIDs are in macOS but maybe starting somewhere at the top of the range (to avoid any regular userIDs that seems to start at 5xx) might be another option. |
Platform
Additional information
Main factor that might impact is this is an enterprise Jamf controlled machine.
As you can see in the output each time a sudo is needed I am required to give a reason for this super user action.
This is everywhere where you see this line:
Please also note there is a secondary non-blocking issue here in that the sudo command about to be run is not showing.
Possibly due to the above mentioned "provide a reason" request.
Output
Output
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: