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

Installer failed after old Nix was lost during macOS update #8685

Closed
1 task
skyrgobbler opened this issue Jul 11, 2023 · 2 comments
Closed
1 task

Installer failed after old Nix was lost during macOS update #8685

skyrgobbler opened this issue Jul 11, 2023 · 2 comments

Comments

@skyrgobbler
Copy link

Platform

  • macOS

Additional information

After an update to macOS v11.7.8 my old nix installation had disapeared. The old nix volume seemed to still exist, but I couldn't get anything working with it, even after considerable poking around to get it back. I therefore went about trying to do a fresh install using the online installer, but that failed (see log below).

Output

Output

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  4052  100  4052    0     0   5792      0 --:--:-- --:--:-- --:--:-- 22511
downloading Nix 2.16.1 binary tarball for x86_64-darwin from 'https://releases.nixos.org/nix/nix-2.16.1/nix-2.16.1-x86_64-darwin.tar.xz' to '/var/folders/y2/jlrhhn091gx012lf9v4pjy500000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.2MKNGEhJ'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24.1M  100 24.1M    0     0  5188k      0  0:00:04  0:00:04 --:--:-- 5196k
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 and groups that the Nix daemon uses to run
   builds.

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:	05CDEE89-A454-4785-96E2-036FFD1C19DE
encrypted:	yes


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

    $ sudo /usr/sbin/diskutil apfs unlockVolume disk1s7 -verify -stdinpassphrase -user 05CDEE89-A454-4785-96E2-036FFD1C19DE

I am executing:

to confirm the password actually unlocks the volume

    $ sudo security find-generic-password -s 05CDEE89-A454-4785-96E2-036FFD1C19DE -w

to confirm keychain has a password that unlocks this volume

Password:
Verifying the specific cryptographic user 05CDEE89-A454-4785-96E2-036FFD1C19DE 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.
Can I remove /etc/synthetic.conf?
[y/n] y


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

    $ sudo rm /etc/synthetic.conf

to remove /etc/synthetic.conf

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/y2/jlrhhn091gx012lf9v4pjy500000gn/T/tmp.QIEnx9rP
        Nix Root:	/nix
     Build Users:	32
  Build Group ID:	30000
Build Group Name:	nixbld

build users:
    Username:	UID
     _nixbld1:	301
     _nixbld2:	302
     _nixbld3:	303
     _nixbld4:	304
     _nixbld5:	305
     _nixbld6:	306
     _nixbld7:	307
     _nixbld8:	308
     _nixbld9:	309
     _nixbld10:	310
     _nixbld11:	311
     _nixbld12:	312
     _nixbld13:	313
     _nixbld14:	314
     _nixbld15:	315
     _nixbld16:	316
     _nixbld17:	317
     _nixbld18:	318
     _nixbld19:	319
     _nixbld20:	320
     _nixbld21:	321
     _nixbld22:	322
     _nixbld23:	323
     _nixbld24:	324
     _nixbld25:	325
     _nixbld26:	326
     _nixbld27:	327
     _nixbld28:	328
     _nixbld29:	329
     _nixbld30:	330
     _nixbld31:	331
     _nixbld32:	332

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


~~> Creating a Nix volume

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

    $ sudo /usr/sbin/diskutil unmount force disk1s7

to ensure the Nix volume is not mounted

Volume Nix Store on disk1s7 force-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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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:	30000

~~> 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)


---- 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/y2/jlrhhn091gx012lf9v4pjy500000gn/T/tmp.QIEnx9rP/.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/1bsjl5incfnszv7scdh4d02sh45vw2w1-bash-5.1-p16 ./store/2v5nj277h7lfyd5yhrbvz8wi2im07ckk-boehm-gc-8.2.2 ./store/3ayz9iaihbjjg092w6bqbc0q8qd10ila-aws-c-io-0.13.11 ./store/473cwip3bp1b21ryc6qph0b5bmqy8sah-libiconv-50 ./store/496pdqfpsawd945z8fv2pmwxbzj6w2pn-libssh2-1.10.0 ./store/54qb55m0an6n321nfc0mdqg3f0xw9imi-aws-checksums-0.1.13 ./store/63yw07v6bdbf1xa8df858dafhlrjw0mf-aws-c-event-stream-0.2.15 ./store/6fds5r1713zljf9sjgypc5g0gb7hcgkw-aws-c-sdkutils-0.1.7 ./store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security ./store/79xrxqysrvrpwxnag6a3r7cbh52qqjb6-nss-cacert-3.83 ./store/963m9nyd8irsqa4jjjxi9mymqh1nbzvk-libunistring-1.0 ./store/c33jj94i5jbbi8g052b1disr8vqlsrwp-zstd-1.5.2 ./store/c6w5nc0kjc9h9xkqy7qnsl8lvl21f8kx-aws-c-auth-0.6.21 ./store/c9x2xvim76z82l2nslvzkaq43fbcljwp-nghttp2-1.49.0-lib ./store/d6ff94g4g259fdl5080pn2g22v3z394k-aws-crt-cpp-0.18.9 ./store/dnxv86ynv9fz2wdb08m56l7r6q6w7rpm-libidn2-2.3.2 ./store/drdzf0il1fkv5n9385bhng55y3ss1fx5-aws-c-http-0.6.27 ./store/ds3bgmb92lj32dasa6kzcr29i80gz62f-brotli-1.0.9-lib ./store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit ./store/g9j1s47g3bkf9y3w1318rihpn8h23x1v-editline-1.17.1 ./store/h1xy7fv5j4my7vrc5jf1nzm9413vfipi-aws-c-compression-0.2.16 ./store/h2n2dfxl9746llqdy1fs0wkqz8rcb1ix-libkrb5-1.20 ./store/h3kjl6ply7vvx6j8jvyh315vybpd69vj-aws-c-s3-0.1.51 ./store/h5cnl1cqaq3nlxxfg6vrdfjblb6hppwf-libxml2-2.10.3 ./store/hh9siq6hhrsk2nlbr59z5nqjsdhmfwjp-libidn2-2.3.2 ./store/hw0pahhla0yl6iln7l6rpbiki2ci6p0c-aws-c-cal-0.5.20 ./store/hzp4534l040cki7i6p9nz7by8kw9qhfv-aws-c-mqtt-0.7.13 ./store/ikc1gndxxy861jwd6mh9ipkyhssxixzr-brotli-1.0.9-lib ./store/ixz132mkf3rqipwn2cldnvl1hn3qhwyd-aws-c-common-0.8.5 ./store/k9pkg1yc715wwihjksxd2ydzhicbijx6-libcxx-11.1.0 ./store/lnijgx434m1c7g8j9iq0vmy19f130w99-libsodium-1.0.18 ./store/lxdpc5hw7bqgn8jq95l282qjxpipikk0-libxml2-2.10.1 ./store/m4p0yk7q8wafzdx5pl0nhgv3blv9pq36-zlib-1.2.13 ./store/mlh211d5j81p93v9mnw8ah3jgi227vi2-libarchive-3.6.1-lib ./store/n0rb8r04s28wjzf7p92agql0ws1r8qvn-Libsystem-1238.60.2 ./store/n0rnrh5nv763l9w34hcaw23mcx5aqw9n-libssh2-1.10.0 ./store/piaaxfmfljjkznw3a146pr5mfrqz422q-curl-7.86.0 ./store/qvvl2gdr4b4aa24v2gan7dm7r2fsnj0a-bzip2-1.0.8 ./store/r3imrw708jm3p28pixxlca0v47c1akxc-libcpuid-0.6.2 ./store/r5pd6x5ljbxnbjsvnxldl1y0sbfg3zjs-curl-7.86.0 ./store/rbq9ixrvnbkn072aid0jljraypkz0434-nlohmann_json-3.11.2 ./store/rcrp4kfp2s46v48hqk3hj09isbrvl150-sqlite-3.39.4 ./store/rp8058411wmb9y7bh5qj5iy9wbhwyskd-libunistring-1.0 ./store/rssxskr23b6f0h6dr05ijv2h9i4fhxh3-libkrb5-1.20 ./store/sxmpb2gw6ihm8xnnadjx5kd0gnn6b8qs-xz-5.2.7 ./store/xd2a4xh8kdwq0j67hzgw720npdw5hzkk-ICU-66108 ./store/xlcsi2mfkp7xnqwplkjiy8h4ndlpr7yc-zstd-1.5.2 ./store/xprjjffj7iri36xdcv778swczy64nw1i-openssl-3.0.7 ./store/yf0lqlgsvkrbf8ax6qvyrn163y45c3im-openssl-3.0.7 ./store/yq09im0pkl0p6h9mdcl3fcmfn8rj04bd-nix-2.16.1 ./store/z6a1wy80p7qpbim8m3r3zqp3v8gjyfy2-libcxxabi-11.1.0 ./store/z7lpp0k3wqdb3r04b3kjwgr2z2b2swyj-nghttp2-1.49.0-lib ./store/zc3d7bwlj0diby9rf6cahh7jx6vf1s8p-aws-sdk-cpp-1.9.294 ./store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14 /nix/store/

to copy the basic Nix files to the new store at /nix/store

cp: cannot overwrite directory /nix/store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current with non-directory ./store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current
cp: cannot overwrite directory /nix/store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources with non-directory ./store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources
cp: cannot overwrite directory /nix/store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Headers with non-directory ./store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Headers
cp: cannot overwrite directory /nix/store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Resources with non-directory ./store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security/Library/Frameworks/Security.framework/Resources
cp: cannot overwrite directory /nix/store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current with non-directory ./store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current
cp: cannot overwrite directory /nix/store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources with non-directory ./store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources
cp: cannot overwrite directory /nix/store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Headers with non-directory ./store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Headers
cp: cannot overwrite directory /nix/store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources with non-directory ./store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources
cp: cannot overwrite directory /nix/store/h2n2dfxl9746llqdy1fs0wkqz8rcb1ix-libkrb5-1.20/sbin with non-directory ./store/h2n2dfxl9746llqdy1fs0wkqz8rcb1ix-libkrb5-1.20/sbin
cp: cannot overwrite directory /nix/store/rssxskr23b6f0h6dr05ijv2h9i4fhxh3-libkrb5-1.20/sbin with non-directory ./store/rssxskr23b6f0h6dr05ijv2h9i4fhxh3-libkrb5-1.20/sbin
cp: cannot overwrite directory /nix/store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14/Library/Frameworks/CoreFoundation.framework/Versions/Current with non-directory ./store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14/Library/Frameworks/CoreFoundation.framework/Versions/Current
cp: cannot overwrite directory /nix/store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14/Library/Frameworks/CoreFoundation.framework/Headers with non-directory ./store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14/Library/Frameworks/CoreFoundation.framework/Headers
cp: cannot overwrite directory /nix/store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14/Library/Frameworks/CoreFoundation.framework/Modules with non-directory ./store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14/Library/Frameworks/CoreFoundation.framework/Modules

---- 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

Priorities

Add 👍 to issues you find important.

@abathur
Copy link
Member

abathur commented Jul 11, 2023

For future reference: you don't have to reinstall after the update. The update is overwriting the shell hook, but you can just replace it. See #3616 for more.

At this point you'll have to follow the uninstall instructions before reinstalling it: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos

@skyrgobbler
Copy link
Author

Great thanks! Good to know for next time :) I've uninstalled and reinstalled and happy again!

I guess we can call this issue closed!

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

2 participants