ITADN
NixOS/nix/Issues

“Oh no, something went wrong” while installing

#15993Closedtiansiyuan 创建于 2026-06-08
installer
T
tiansiyuancommented
## Platform <!-- select the platform on which you tried to install Nix --> - [ ] Linux: <!-- state your distribution, e.g. Arch Linux, Ubuntu, ... --> - [x] macOS - [ ] WSL ## Additional information <!-- state special circumstances on your system or additional steps you have taken prior to installation --> ## Output <details><summary>Output</summary> <!-- paste console output inside the below code block --> ```log sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 100 4267 100 4267 0 0 3101 0 00:01 00:01 0 downloading Nix 2.34.7 binary tarball for x86_64-darwin from 'https://releases.nixos.org/nix/nix-2.34.7/nix-2.34.7-x86_64-darwin.tar.xz' to '/var/folders/zn/6rqm71ns1xg74fgng7cgx24c0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.nCXbFGio'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18.18M 100 18.18M 0 0 312.4k 0 00:59 00:59 1.60M Switching to the Multi-user Installer Welcome to the Multi-User Nix Installation This installation tool will set up your computer with the Nix package manager. This will happen in a few stages: 1. Make sure your computer doesn't already have Nix. If it does, I will show you instructions on how to clean up your old install. 2. Show you what I am going to install and where. Then I will ask if you are ready to continue. 3. Create the system users (uids [351..382]) and groups (gid 350) that the Nix daemon uses to run builds. To create system users in a different range, exit and run this tool again with NIX_FIRST_BUILD_UID set. 4. Perform the basic installation of the Nix files daemon. 5. Configure your shell to import special Nix Profile files, so you can use Nix. 6. Start the Nix daemon. Would you like to see a more detailed list of what I will do? [y/n] y I will: - make sure your computer doesn't already have Nix files (if it does, I will tell you how to clean them up.) - create local users (see the list above for the users I'll make) - create a local group (nixbld) - install Nix in /nix - create a configuration file in /etc/nix - set up the "default profile" by creating some Nix-related files in /var/root - back up /etc/bashrc to /etc/bashrc.backup-before-nix - update /etc/bashrc to include some Nix configuration - back up /etc/zshrc to /etc/zshrc.backup-before-nix - update /etc/zshrc to include some Nix configuration - create a Nix volume and a LaunchDaemon to mount it - create a LaunchDaemon (at /Library/LaunchDaemons/org.nixos.nix-daemon.plist) for nix-daemon Ready to continue? [y/n] y ---- let's talk about sudo ----------------------------------------------------- This script is going to call sudo a lot. Every time I do, it'll output exactly what it'll do, and why. Just like this: ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo echo to demonstrate how our sudo prompts look This might look scary, but everything can be undone by running just a few commands. I used to ask you to confirm each time sudo ran, but it was too many times. Instead, I'll just ask you this one time: Can I use sudo? [y/n] y Yay! Thanks! Let's get going! ~~> Fixing any leftover Nix volume state Before I try to install, I'll check for any existing Nix volume config and ask for your permission to remove it (so that the installer can start fresh). I'll also ask for permission to fix any issues I spot. ~~> Checking for artifacts of previous installs Before I try to install, I'll check for signs Nix already is or has been installed on this system. ---- Nix config report --------------------------------------------------------- Temp Dir: /var/folders/zn/6rqm71ns1xg74fgng7cgx24c0000gn/T/tmp.tCEVR6GX Nix Root: /nix Build Users: 32 Build Group ID: 350 Build Group Name: nixbld build users: Username: UID _nixbld1: 351 _nixbld2: 352 _nixbld3: 353 _nixbld4: 354 _nixbld5: 355 _nixbld6: 356 _nixbld7: 357 _nixbld8: 358 _nixbld9: 359 _nixbld10: 360 _nixbld11: 361 _nixbld12: 362 _nixbld13: 363 _nixbld14: 364 _nixbld15: 365 _nixbld16: 366 _nixbld17: 367 _nixbld18: 368 _nixbld19: 369 _nixbld20: 370 _nixbld21: 371 _nixbld22: 372 _nixbld23: 373 _nixbld24: 374 _nixbld25: 375 _nixbld26: 376 _nixbld27: 377 _nixbld28: 378 _nixbld29: 379 _nixbld30: 380 _nixbld31: 381 _nixbld32: 382 Ready to continue? [y/n] y ---- Preparing a Nix volume ---------------------------------------------------- Nix traditionally stores its data in the root directory /nix, but macOS now (starting in 10.15 Catalina) has a read-only root directory. To support Nix, I will create a volume and configure macOS to mount it at /nix. ~~> Configuring /etc/synthetic.conf to make a mount-point at /nix ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/ex -u NONE -n /etc/synthetic.conf to add Nix to /etc/synthetic.conf Password: ~~> Creating a Nix volume ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/diskutil apfs addVolume disk1 APFS Nix Store -nomount to create a new APFS volume 'Nix Store' on disk1 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/diskutil unmount force disk1s7 to ensure the Nix volume is not mounted disk1s7 was already unmounted ~~> Configuring /etc/fstab to specify volume mount options ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/vifs to add nix to fstab ~~> Configuring LaunchDaemon to mount 'Nix Store' ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/ex -u NONE -n /Library/LaunchDaemons/org.nixos.darwin-store.plist to install the Nix volume mounter ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.darwin-store.plist to launch the Nix volume mounter ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo launchctl kickstart -k system/org.nixos.darwin-store to launch the Nix volume mounter ~~> Setting up the build group nixbld ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o create -r Nix build group for nix-daemon -i 350 nixbld Create the Nix build group, nixbld Created: Yes ~~> Setting up the build user _nixbld1 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld1 UniqueID 351 Creating the Nix build user (#1), _nixbld1 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 1 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld1 nixbld Add _nixbld1 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld1 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld2 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld2 UniqueID 352 Creating the Nix build user (#2), _nixbld2 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 2 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld2 nixbld Add _nixbld2 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld2 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld3 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld3 UniqueID 353 Creating the Nix build user (#3), _nixbld3 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 3 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld3 nixbld Add _nixbld3 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld3 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld4 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld4 UniqueID 354 Creating the Nix build user (#4), _nixbld4 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 4 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld4 nixbld Add _nixbld4 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld4 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld5 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld5 UniqueID 355 Creating the Nix build user (#5), _nixbld5 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 5 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld5 nixbld Add _nixbld5 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld5 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld6 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld6 UniqueID 356 Creating the Nix build user (#6), _nixbld6 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 6 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld6 nixbld Add _nixbld6 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld6 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld7 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld7 UniqueID 357 Creating the Nix build user (#7), _nixbld7 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 7 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld7 nixbld Add _nixbld7 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld7 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld8 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld8 UniqueID 358 Creating the Nix build user (#8), _nixbld8 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 8 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld8 nixbld Add _nixbld8 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld8 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld9 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld9 UniqueID 359 Creating the Nix build user (#9), _nixbld9 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 9 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld9 nixbld Add _nixbld9 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld9 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld10 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld10 UniqueID 360 Creating the Nix build user (#10), _nixbld10 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 10 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld10 nixbld Add _nixbld10 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld10 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld11 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld11 UniqueID 361 Creating the Nix build user (#11), _nixbld11 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 11 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld11 nixbld Add _nixbld11 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld11 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld12 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld12 UniqueID 362 Creating the Nix build user (#12), _nixbld12 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 12 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld12 nixbld Add _nixbld12 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld12 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld13 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld13 UniqueID 363 Creating the Nix build user (#13), _nixbld13 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 13 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld13 nixbld Add _nixbld13 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld13 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld14 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld14 UniqueID 364 Creating the Nix build user (#14), _nixbld14 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 14 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld14 nixbld Add _nixbld14 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld14 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld15 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld15 UniqueID 365 Creating the Nix build user (#15), _nixbld15 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 15 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld15 nixbld Add _nixbld15 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld15 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld16 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld16 UniqueID 366 Creating the Nix build user (#16), _nixbld16 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 16 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld16 nixbld Add _nixbld16 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld16 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld17 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld17 UniqueID 367 Creating the Nix build user (#17), _nixbld17 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 17 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld17 nixbld Add _nixbld17 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld17 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld18 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld18 UniqueID 368 Creating the Nix build user (#18), _nixbld18 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 18 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld18 nixbld Add _nixbld18 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld18 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld19 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld19 UniqueID 369 Creating the Nix build user (#19), _nixbld19 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 19 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld19 nixbld Add _nixbld19 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld19 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld20 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld20 UniqueID 370 Creating the Nix build user (#20), _nixbld20 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 20 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld20 nixbld Add _nixbld20 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld20 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld21 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld21 UniqueID 371 Creating the Nix build user (#21), _nixbld21 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 21 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld21 nixbld Add _nixbld21 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld21 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld22 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld22 UniqueID 372 Creating the Nix build user (#22), _nixbld22 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 22 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld22 nixbld Add _nixbld22 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld22 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld23 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld23 UniqueID 373 Creating the Nix build user (#23), _nixbld23 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 23 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld23 nixbld Add _nixbld23 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld23 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld24 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld24 UniqueID 374 Creating the Nix build user (#24), _nixbld24 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 24 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld24 nixbld Add _nixbld24 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld24 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld25 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld25 UniqueID 375 Creating the Nix build user (#25), _nixbld25 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 25 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld25 nixbld Add _nixbld25 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld25 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld26 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld26 UniqueID 376 Creating the Nix build user (#26), _nixbld26 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 26 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld26 nixbld Add _nixbld26 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld26 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld27 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld27 UniqueID 377 Creating the Nix build user (#27), _nixbld27 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 27 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld27 nixbld Add _nixbld27 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld27 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld28 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld28 UniqueID 378 Creating the Nix build user (#28), _nixbld28 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 28 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld28 nixbld Add _nixbld28 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld28 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld29 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld29 UniqueID 379 Creating the Nix build user (#29), _nixbld29 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 29 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld29 nixbld Add _nixbld29 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld29 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld30 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld30 UniqueID 380 Creating the Nix build user (#30), _nixbld30 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 30 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld30 nixbld Add _nixbld30 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld30 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld31 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld31 UniqueID 381 Creating the Nix build user (#31), _nixbld31 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 31 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld31 nixbld Add _nixbld31 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld31 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the build user _nixbld32 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . create /Users/_nixbld32 UniqueID 382 Creating the Nix build user (#32), _nixbld32 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 32 Logins Disabled: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld32 nixbld Add _nixbld32 to the nixbld group Member of nixbld: Yes ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/dscl . -create /Users/_nixbld32 PrimaryGroupID 350 to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership) PrimaryGroupID: 350 ~~> Setting up the basic directory structure ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/chown -R root:nixbld /nix to take root ownership of existing Nix store files ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo install -dv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/daemon-socket /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user to make the basic directory structure of Nix (part 1) install: mkdir /nix/var install: mkdir /nix/var/log install: mkdir /nix/var/log/nix install: mkdir /nix/var/log/nix/drvs install: mkdir /nix/var/nix install: mkdir /nix/var/nix/db install: mkdir /nix/var/nix/gcroots install: mkdir /nix/var/nix/profiles install: mkdir /nix/var/nix/temproots install: mkdir /nix/var/nix/userpool install: mkdir /nix/var/nix/daemon-socket install: mkdir /nix/var/nix/gcroots/per-user install: mkdir /nix/var/nix/profiles/per-user ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo install -dv -g nixbld -m 1775 /nix/store to make the basic directory structure of Nix (part 2) install: mkdir /nix/store ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo install -dv -m 0555 /etc/nix to place the default nix daemon configuration (part 1) install: mkdir /etc/nix ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo install -m 0644 /var/folders/zn/6rqm71ns1xg74fgng7cgx24c0000gn/T/tmp.tCEVR6GX/.nix-channels /var/root/.nix-channels to set up the default system channel (part 1) ~~> Installing Nix ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo cp -RPp ./store/0nlnrxifmmdmk5ffj0f91pvpsniqi4sl-aws-c-http-0.10.4 ./store/1ihldmbpp0bnkcy92ay3wh116qzwcgb3-nix-cmd-2.34.7 ./store/1mn7prsf3wgqi3bs8ihg6s985p08ac35-nix-main-2.34.7 ./store/1wg7qx90sing2r3i6krd1w9fwily50nn-lowdown-2.0.2-lib ./store/2mcbfxgqh99pw72is5abkx48y720cqhn-openssl-3.6.1 ./store/2swcsl5hhl6j6mm9jdyiw9ms3ds5w8ga-libunistring-1.4.1 ./store/4k3ky11zcdvy9silgmqry4j2qdavdvx3-libarchive-3.8.4-lib ./store/5irn90gjrhiyh335k6xhg8abb6bn3190-nix-fetchers-2.34.7 ./store/62rgfggj4qfc45zfr2a7ix3ysb82clqb-nss-cacert-3.117 ./store/76pnr0d9w01282m06ghpw6m96awzlcnz-nghttp2-1.67.1-lib ./store/819nhb2fyaw4iw52wy2f3ngskygkaq4n-zlib-1.3.1 ./store/8ds1zgpygg4iibjsxkxs5163pfwqj899-xz-5.8.1 ./store/8lm0656ibxm2z77cx4yxddbwh2bp8zz6-aws-c-cal-0.9.2 ./store/a91al0s9p6xjmd90snzpz7hkvzxd5mz9-nix-flake-2.34.7 ./store/akx44g3wsp2f9xfbg9jfgncsz80caa6n-boehm-gc-8.2.8 ./store/amp61qm365wg0n4mqs4rfkj8l0wyh8i2-bzip2-1.0.8 ./store/ams6bfd3lqg04jfs0vgzhgd8kpcyb906-aws-c-compression-0.3.1 ./store/b9adrl6z53hl8sa5xrd951xkq38ch1iv-libresolv-91 ./store/bi6al1v4ps6ymldlmawknqyjrvqd81il-aws-c-event-stream-0.5.7 ./store/cjcm60n50w065fr1w46nhkynjdid5z46-aws-checksums-0.2.7 ./store/cjyf1hq40gbncwzb22hvbh6jdwfa68kq-pcre2-10.46 ./store/dqgwz9l6ip8gck47s8i79blk9qm49w4a-zstd-1.5.7 ./store/dxbl1hlrqfnwmjksi0j6kxmpi4fvx9b4-onetbb-2022.3.0 ./store/f0rn4ylnybm5c1x9fnm41fkvya9xmfyw-hwloc-2.12.2-lib ./store/ga89gvnw72p92i3i4svya4c99jqaayla-aws-crt-cpp-0.34.3 ./store/gzw98r8v2j8v2rji42rm9qc2k0948in9-libgit2-1.9.2-lib ./store/hsk96gwn5qjw3jq8fw2cvx9yidabmiz5-boost-1.87.0 ./store/i4g1clv7xp4klq662yhsl56zwm3zin3n-nix-util-2.34.7 ./store/i5awxa5xx4ak2smpmhxc600jimxrzdnh-libpsl-0.21.5 ./store/imrhndi61qdhm74x03c8fg2gkcairanj-ngtcp2-1.17.0 ./store/j8w3id2zi2sayj8qc2hgmqf04nnmhrwm-aws-c-io-0.22.0 ./store/kfcw484l8bnfxkp4h1i9zrc6sq6iv079-libxml2-2.15.1 ./store/lmwh111mx6b15vj08lh4y7vgm30n636i-nix-store-2.34.7 ./store/lyaq6d409c42w5cj28s66zdk6zi53iss-aws-c-mqtt-0.13.3 ./store/mzxl39s4q6pbkf3rjrhb7iy14jgnnbn7-nix-expr-2.34.7 ./store/n7x00fsir7hds8kh9dskmljr3s2lj9fs-aws-c-auth-0.9.1 ./store/n91dd5z9yqswi7bszdzf5w6rsdsggm3j-nix-2.34.7 ./store/pj0m8h3gjavdfkglgqvn92wgxchrr4y2-gettext-0.25.1 ./store/pqwwjvmk9xxff6zdif7qk9sqs4053jkb-krb5-1.22.1-lib ./store/q942w7gqw4f5i5f9754nv71077fy8cla-libiconv-1.18 ./store/qkh0b6v02wfvpi2pfa79bpkfracqygy0-libidn2-2.3.8 ./store/qqz6afiy35xw04qlcf2ican1y90zvcz7-libiconv-109.100.2 ./store/r55zs1y8s182gf4z0fq3cj0clyy07ppy-libssh2-1.11.1 ./store/rvxzdvm2a7ihgirvcvyllhd9pdjqy6h4-nix-manual-2.34.7-man ./store/s06grvdmhl6pp4rwj4qnvcgxjs9p8shy-sqlite-3.50.4 ./store/sagf0frwz7v12c90f21s8rplh9xgqxff-nghttp3-1.12.0 ./store/sam5djxly3j83w73j66ni9vi68rx41g6-publicsuffix-list-0-unstable-2025-12-28 ./store/sbs99aidmdig2my4lmi7mw8rrd9dh04y-libblake3-1.8.2 ./store/vgjvg90sp0zvlkazsgknyngzhxv8b172-bash-5.3p3 ./store/vy8x55gv8hdvnsg33hdijsj4ba3d8zir-aws-c-sdkutils-0.2.4 ./store/w391bab7c633s6vprb56670qwk22j333-curl-8.18.0 ./store/x5qa3r2m00ydd17qz0ih40d8hsnqg53r-brotli-1.1.0-lib ./store/y65isiwdf3bzmg4n0v90vmfmqrm1q09r-aws-c-common-0.12.4 ./store/y84z552l282hyc2vbsmpxgwkljnss6fy-libsodium-1.0.20-unstable-2025-12-31 ./store/y9bykpnmmy6kabw2d9snrn5nggyc23jd-libcpuid-0.8.1 ./store/z5zr9w32l3ja72yqpnnid5cyc329lxw6-llhttp-9.3.0 ./store/zad2qr7y3ji4r9qyx15k9fkwrvnr3d47-aws-c-s3-0.8.7 ./store/zwd3d2m923cfq944z349qlarnjvlvrqn-editline-1.17.1-unstable-2025-05-24 /nix/store/ to copy the basic Nix files to the new store at /nix/store ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo chmod -R ugo-w /nix/store/ to make the new store non-writable at /nix/store Alright! We have our first nix at /nix/store/n91dd5z9yqswi7bszdzf5w6rsdsggm3j-nix-2.34.7 ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo HOME=/var/root /nix/store/n91dd5z9yqswi7bszdzf5w6rsdsggm3j-nix-2.34.7/bin/nix-store --load-db to load data for the first time in to the Nix Database dyld[88832]: Symbol not found: (__ZNSt3__13pmr15memory_resourceD2Ev) Referenced from: '/nix/store/mzxl39s4q6pbkf3rjrhb7iy14jgnnbn7-nix-expr-2.34.7/lib/libnixexpr.2.34.7.dylib' Expected in: '/usr/lib/libc++.1.dylib' /var/folders/zn/6rqm71ns1xg74fgng7cgx24c0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.nCXbFGio/unpack/nix-2.34.7-x86_64-darwin/install-multi-user: 第 372 行:88831 Abort trap: 6 $NIX_BECOME env "$@" ---- 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/new?labels=installer&template=installer.md Or get in touch with the community: https://nixos.org/community ``` </details> ## Checklist <!-- make sure this issue is not redundant or obsolete --> - [x] checked [latest Nix manual] \([source]) - [x] checked [open installer issues and pull requests] for possible duplicates [latest Nix manual]: https://nix.dev/manual/nix/development/ [source]: https://github.com/NixOS/nix/tree/master/doc/manual/source [open installer issues and pull requests]: https://github.com/NixOS/nix/labels/installer --- Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
关闭于 2026-06-08 2 条评论