You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble re-installing nix on a macOS system.
I had a previous installation, then uninstalled it ungracefully with something stupid of the kind
rm -rf /nix
diskutil unmount /nix
and now I can't install nix again, I get the output shown below.
Any help would be welcome!
Platform
Linux:
macOS
WSL
Additional information
I had a previous installation of nixos which I have ungracefully uninstalled
Output
Output
Proux% sh <(curl -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 11590 0 --:--:-- --:--:-- --:--:-- 11590
downloading Nix 2.25.3 binary tarball for x86_64-darwin from 'https://releases.nixos.org/nix/nix-2.25.3/nix-2.25.3-x86_64-darwin.tar.xz' to '/var/folders/c9/_jvkx9hs0p389w3x3q8b19gr0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.F3xH0wT5'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17.6M 100 17.6M 0 0 30.0M 0 --:--:-- --:--:-- --:--:-- 30.6M
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] n
---- 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.
---- Found existing Nix volume -------------------------------------------------
special: disk1s7
uuid: 5CF66956-FE5C-48AA-9DEC-015F59F8E405
encrypted: yes
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo security find-generic-password -s 5CF66956-FE5C-48AA-9DEC-015F59F8E405 -w
to confirm keychain has a password that unlocks this volume
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil apfs unlockVolume disk1s7 -verify -stdinpassphrase -user 5CF66956-FE5C-48AA-9DEC-015F59F8E405
to confirm the password actually unlocks the volume
Verifying the specific cryptographic user 5CF66956-FE5C-48AA-9DEC-015F59F8E405 on APFS Volume disk1s7
Passphrase valid
Found a working decryption password in keychain :)
During install, I add 'nix' to /etc/synthetic.conf, which instructs
macOS to create an empty root directory for mounting the Nix volume.
Nix isn't the only thing in /var/folders/c9/_jvkx9hs0p389w3x3q8b19gr0000gn/T/tmp.BvYyTNr4/synthetic.conf.edit,
but I think I know how to edit it out.
Here's the diff:
+ nix
run private/var/run
Does the change above look right?
[y/n] y
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo cp /etc/synthetic.conf /var/folders/c9/_jvkx9hs0p389w3x3q8b19gr0000gn/T/tmp.BvYyTNr4/synthetic.conf.edit
remove nix from /var/folders/c9/_jvkx9hs0p389w3x3q8b19gr0000gn/T/tmp.BvYyTNr4/synthetic.conf.edit
During install, I add '/nix' to /etc/fstab so that macOS knows what
mount options to use for the Nix volume.
Can I remove /etc/fstab?
[y/n] y
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo rm /etc/fstab
to remove /etc/fstab
The installer adds a LaunchDaemon to mount your Nix volume: org.nixos.darwin-store
Can I remove it?
[y/n] y
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl bootout system/org.nixos.darwin-store
to terminate the daemon
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo rm /Library/LaunchDaemons/org.nixos.darwin-store.plist
to remove the daemon definition
~~> 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/c9/_jvkx9hs0p389w3x3q8b19gr0000gn/T/tmp.BvYyTNr4
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.
~~> Creating a Nix volume
---- 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
Exists: Yes
~~> Setting up the build user _nixbld1
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld1 RealName Nix build user 1
in order to give _nixbld1 a useful note
Note: Nix build user 1
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld2
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld2 RealName Nix build user 2
in order to give _nixbld2 a useful note
Note: Nix build user 2
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld3
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld3 RealName Nix build user 3
in order to give _nixbld3 a useful note
Note: Nix build user 3
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld4
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld4 RealName Nix build user 4
in order to give _nixbld4 a useful note
Note: Nix build user 4
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld5
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld5 RealName Nix build user 5
in order to give _nixbld5 a useful note
Note: Nix build user 5
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld6
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld6 RealName Nix build user 6
in order to give _nixbld6 a useful note
Note: Nix build user 6
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld7
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld7 RealName Nix build user 7
in order to give _nixbld7 a useful note
Note: Nix build user 7
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld8
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld8 RealName Nix build user 8
in order to give _nixbld8 a useful note
Note: Nix build user 8
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld9
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld9 RealName Nix build user 9
in order to give _nixbld9 a useful note
Note: Nix build user 9
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld10
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld10 RealName Nix build user 10
in order to give _nixbld10 a useful note
Note: Nix build user 10
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld11
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld11 RealName Nix build user 11
in order to give _nixbld11 a useful note
Note: Nix build user 11
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld12
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld12 RealName Nix build user 12
in order to give _nixbld12 a useful note
Note: Nix build user 12
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld13
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld13 RealName Nix build user 13
in order to give _nixbld13 a useful note
Note: Nix build user 13
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld14
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld14 RealName Nix build user 14
in order to give _nixbld14 a useful note
Note: Nix build user 14
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld15
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld15 RealName Nix build user 15
in order to give _nixbld15 a useful note
Note: Nix build user 15
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld16
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld16 RealName Nix build user 16
in order to give _nixbld16 a useful note
Note: Nix build user 16
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld17
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld17 RealName Nix build user 17
in order to give _nixbld17 a useful note
Note: Nix build user 17
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld18
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld18 RealName Nix build user 18
in order to give _nixbld18 a useful note
Note: Nix build user 18
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld19
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld19 RealName Nix build user 19
in order to give _nixbld19 a useful note
Note: Nix build user 19
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld20
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld20 RealName Nix build user 20
in order to give _nixbld20 a useful note
Note: Nix build user 20
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld21
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld21 RealName Nix build user 21
in order to give _nixbld21 a useful note
Note: Nix build user 21
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld22
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld22 RealName Nix build user 22
in order to give _nixbld22 a useful note
Note: Nix build user 22
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld23
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld23 RealName Nix build user 23
in order to give _nixbld23 a useful note
Note: Nix build user 23
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld24
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld24 RealName Nix build user 24
in order to give _nixbld24 a useful note
Note: Nix build user 24
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld25
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld25 RealName Nix build user 25
in order to give _nixbld25 a useful note
Note: Nix build user 25
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld26
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld26 RealName Nix build user 26
in order to give _nixbld26 a useful note
Note: Nix build user 26
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld27
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld27 RealName Nix build user 27
in order to give _nixbld27 a useful note
Note: Nix build user 27
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld28
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld28 RealName Nix build user 28
in order to give _nixbld28 a useful note
Note: Nix build user 28
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld29
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld29 RealName Nix build user 29
in order to give _nixbld29 a useful note
Note: Nix build user 29
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld30
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld30 RealName Nix build user 30
in order to give _nixbld30 a useful note
Note: Nix build user 30
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld31
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld31 RealName Nix build user 31
in order to give _nixbld31 a useful note
Note: Nix build user 31
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 350
~~> Setting up the build user _nixbld32
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/_nixbld32 RealName Nix build user 32
in order to give _nixbld32 a useful note
Note: Nix build user 32
Logins Disabled: Yes
Member of nixbld: Yes
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
chown: /nix/.Spotlight-V100: Operation not permitted
chown: /nix/.Spotlight-V100: Operation not permitted
chown: /nix/.Trashes: Operation not permitted
chown: /nix/.Trashes: Operation not permitted
---- 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)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -dv -g nixbld -m 1775 /nix/store
to make the basic directory structure of Nix (part 2)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -dv -m 0555 /etc/nix
to place the default nix daemon configuration (part 1)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -m 0664 /var/folders/c9/_jvkx9hs0p389w3x3q8b19gr0000gn/T/tmp.BvYyTNr4/.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/0jp2gqmd41bgd48qcahj9f56ald1x9y2-nlohmann_json-3.11.3 ./store/1zclvq4akifi0p0fhp7w4kkh2zaw9xbz-openssl-3.0.14 ./store/201wwwlg4a07b9sgncc4ilfhdf249fi1-xz-5.4.7 ./store/2mbcadikn9s2fk4gsck751bawrsa507g-libcxx-16.0.6 ./store/3c5hrzrwvhdsd8amf0qav1z7jq45w37p-sqlite-3.45.3 ./store/46nvx7jk1irypl07rxbx34iw42293gwl-aws-c-cal-0.6.12 ./store/4dnfqb16qc9n8793qshys02zf14gbycn-libidn2-2.3.7 ./store/52i167502r4jm7izykilv8nkp31bc0g7-zlib-1.3.1 ./store/5ryf1w2wpryd9zxqzf809iyhyhqhl0x8-gettext-0.21.1 ./store/5yakgs3dbqv4nhfjs0mddazkrj6zrwp6-aws-checksums-0.1.18 ./store/7ladzrs3w73vpggyrg91zhxpglgvrsm8-aws-c-common-0.9.17 ./store/8g79wylaa1bw27ql4r9z8p29gnzy4rpm-aws-c-auth-0.7.18 ./store/8l2cwwyqif3fmhj2z816avqwg0csp8va-aws-c-s3-0.5.7 ./store/8njamb0ipajy5zj40z9h4s35ybncph9r-aws-c-http-0.8.1 ./store/9w9p3zawqd1wx3shyhribar3gzkxkyq6-nix-2.25.3 ./store/a3wbi41h5i4bsnskvb1ikzpsaspykdv1-lowdown-1.1.0-lib ./store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit ./store/cnmc5mqi04nbh8szbvdhszvhbhb5mfxy-libsodium-1.0.19 ./store/cpbrz8msbnssishiss95fpifzisba845-boehm-gc-8.2.6 ./store/djk57n16828q148fridixrjwhwmc2vbs-nss-cacert-3.101 ./store/dxkgykjncdldjad0bms8px9mdqwnkc1j-aws-sdk-cpp-1.11.318 ./store/hmyk213zycikql8bwydg8jhr65kqqx8w-toml11-3.7.1 ./store/ig6x4zr127gyvpcim6xawk022my801zr-aws-crt-cpp-0.26.8 ./store/ixy2fpihclj4ddxalync91lhjbqfxsh8-libgit2-20240516095848-lib ./store/jc7h0cdlm17hqi54ivl16xvjhk7912wq-libssh2-1.11.0 ./store/k836p76f041vl7lpb6a4q8p96dzg3spj-aws-c-event-stream-0.4.2 ./store/ki31j0r7b789qk2sfmb5jwpziza6qaw6-aws-c-io-0.14.7 ./store/kw70lhmaw115df10h1drz7i5f50ivbic-curl-8.7.1 ./store/kx0m0dz23iaddk6pj96cj8vnlj9drq2f-libpsl-0.21.5 ./store/ljq87sxb6w6am9651wqphma5znxjnhih-boost-1.81.0 ./store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security ./store/n16lwzrvjpsxkj1b0004b9zx3f868w71-libcpuid-0.6.5 ./store/nxrq3lhbjl84l3yc2dzi2p96kifyl0h9-publicsuffix-list-0-unstable-2024-01-07 ./store/p1q8ks90k5y5h8q2q7jkj8lj0mrrmd2g-aws-c-mqtt-0.10.4 ./store/pya9s9jc6yi702lykd7cw0zbmg06h86w-bash-5.2p26 ./store/rcn44kcjs4c1ndryhi3n28akkgwy56qf-zstd-1.5.6 ./store/rhl8g70dk399q8lz4falyxrnmbrzqldx-bzip2-1.0.8 ./store/rrzhrmpr4689vqsl7wmlkkq1b3bj1534-nghttp2-1.61.0-lib ./store/rxjhvc6lfc41lam1zn9p4prx9lzdmzrp-aws-c-sdkutils-0.1.16 ./store/skzc1lc6x1rfr3qq0yf0bqp0avmrqib1-Libsystem-1238.60.2 ./store/vy8hn4k1x0wwpn9j527a041ryf9qsy07-brotli-1.1.0-lib ./store/w540z4kwmrpy7l79sd1gnzvg9f5kf9qc-editline-1.17.1 ./store/wd0n3ccabk820z87xkczcwn623j33liy-libunistring-1.1 ./store/x28b7731m96vnk6q7csgyj0bjbr9lpj2-libiconv-99 ./store/xqrvsm0vzlv4h1q36kl3g5gpnym3mgwf-libxml2-2.12.7 ./store/y84rqzxy5hvwvbjb20lj18j7njqxsw03-libarchive-3.7.4-lib ./store/ygknwqn87pw2jqvn8nim31s7nzhaa8zs-aws-c-compression-0.2.18 ./store/ygrm0mhdqq8bfrwbrzjc66kqv29pw0xn-libkrb5-1.21.3 /nix/store/
to copy the basic Nix files to the new store at /nix/store
cp: cannot overwrite directory /nix/store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources with non-directory ./store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources
cp: cannot overwrite directory /nix/store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources with non-directory ./store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources
cp: cannot overwrite directory /nix/store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current with non-directory ./store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current
cp: cannot overwrite directory /nix/store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Headers with non-directory ./store/a9s05iyc9zz134q0hcdvx8cbxnw8w0mj-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Headers
cp: cannot overwrite directory /nix/store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Resources with non-directory ./store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Resources
cp: cannot overwrite directory /nix/store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources with non-directory ./store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources
cp: cannot overwrite directory /nix/store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current with non-directory ./store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current
cp: cannot overwrite directory /nix/store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Headers with non-directory ./store/lkc9hxnrmgwfga0sdx5571mrlpski0vz-apple-framework-Security/Library/Frameworks/Security.framework/Headers
cp: cannot overwrite directory /nix/store/ygrm0mhdqq8bfrwbrzjc66kqv29pw0xn-libkrb5-1.21.3/sbin with non-directory ./store/ygrm0mhdqq8bfrwbrzjc66kqv29pw0xn-libkrb5-1.21.3/sbin
---- 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
Did the rm command appear to actually remove a lot, or just spam you with a bunch of permission denied errors? (I assume it'd do the latter without sudo)
Why were you trying to uninstall? Were you getting "command not found" when trying to run nix commands? (likely after a macOS upgrade/update?)
If you just got permission spam and command not found errors, there may still be a working Nix on your system that is just missing from PATH (macOS updates have a bad habit of overwriting the shell hook the nix installer places in /etc/zshrc), and we might still be able to get it restored without a reinstall.
First, run diskutil info /nix to confirm the volume's mounted at the moment. (It's probably in this state from the installer run. If it's not, try rebooting and see if it's mounted afterwards.)
Once the volume's mounted, try running source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' and then see if your Nix commands are available and working. If they are, I'd just re-add the shell hook to /etc/zshrc as described in #3616 (comment). (You can also look at your local /etc/bashrc as a reference. Some people who don't need multi-user support work around this update problem by adding it to ~/.zshrc instead.)
If that doesn't work we'll sort out uninstall/reinstall.
Hi all!
I'm having trouble re-installing nix on a macOS system.
I had a previous installation, then uninstalled it ungracefully with something stupid of the kind
and now I can't install nix again, I get the output shown below.
Any help would be welcome!
Platform
Additional information
I had a previous installation of nixos which I have ungracefully uninstalled
Output
Output
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: