Open nkeneng opened 1 week ago
Assuming you've taken the Sequoia update and already had Nix installed, I'm reasonably sure that dscl
actually is reporting that the user exists, but that it also has no UID because the Sequoia update is clobbering them.
What's /usr/bin/dscl . -read "/Users/_nixbld1"; echo $?
say?
See also:
Platform
Issue with Installing Nix Package Manager on macOS
When trying to install the Nix package manager, I encountered the following error:
The issue arose because the script used the condition
if ! poly_user_exists "$username" ; then
to check if the user existed. However, this condition returned an empty space in the terminal, which caused the script to incorrectly assume the user existed. Consequently, the next step attempted to retrieve the user ID, resulting in an empty string for the UID because no user ID was found.To resolve this, I added an OR statement to check if the user ID for the username was empty. The modified condition was:
This fixed the issue, allowing the installation to proceed correctly.