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

Error while re-installing nix #6584

Open
RoflWafflesLol opened this issue May 27, 2022 · 1 comment
Open

Error while re-installing nix #6584

RoflWafflesLol opened this issue May 27, 2022 · 1 comment
Labels

Comments

@RoflWafflesLol
Copy link

➜ ~ sh <(curl -L https://nixos.org/nix/install)

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

/Users/[user]/.nix-profile/bin/nix-env

~~> Setting up the build group nixbld
Exists: Yes

~~> Setting up the build user _nixbld1
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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

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/p6/8m5l20910v56q4fm72fjvv540000gp/T/tmp.Uhtz4bTFY9/.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/00sgasgxp8jxgj87zmdmzljb18v0hc48-xz-5.2.5 ./store/160wv13dbppa2di1swgf5zyl2lk6hdqf-libssh2-1.9.0 ./store/23yx7ad0m09l78fk6gsiwj0z080890ay-aws-c-cal-0.4.5 ./store/2ils8lll64wl5mjq82dq5dq1wz5sdh94-libcxx-7.1.0 ./store/3bdz66l6ivl4b02ipknvxxf0pp86swlk-nghttp2-1.43.0-lib ./store/551av1bv94qymc2z3r2gvnkgzbfskjmb-brotli-1.0.9-lib ./store/5cr9gnb02wxh2m36myjwmmc3jfpkjkq6-editline-1.17.1 ./store/5lc1fv5nrj2073pc1gwm819qp2682357-libiconv-50 ./store/5r0j4bh564wgdznzpbpdqkp6xkjqha22-libkrb5-1.18 ./store/6168vypl8mymp827cbh9518smvhsyfzl-openssl-1.1.1l ./store/68kk4107j6h70jsqp1xkpmd6zk98fqb8-nlohmann_json-3.9.1 ./store/69pqniq9s4v5ngrjzbchbanwfrgj7r9n-zlib-1.2.11 ./store/8n973kx5zqgsacsc9h7q2crpapbr78n2-aws-checksums-0.1.11 ./store/9avyykl37vc1yvgbckwc0r4145r9b31l-aws-c-io-0.9.1 ./store/9f7kzk5kil582b1fxz6xz2dsi4a65l5r-sqlite-3.35.5 ./store/afpdl5r9jnb8bx42nzpqi0c6g1flwldg-Libsystem-1238.60.2 ./store/aqnz1yf0iwncihhdzgi98cfr8mprvkhj-curl-7.76.1 ./store/arad889ax111k6qmx5g9zbjzgxrlh6fz-libcpuid-0.5.1 ./store/avrgp9b1cjkxkwrj6ha31h84na2qqyaf-aws-c-event-stream-0.2.7 ./store/awic8a16fawnh8x998zg158rkd859lm1-aws-sdk-cpp-1.8.121 ./store/cr2v17q8xgq68qlxb1yai3ik6jn52m71-libssh2-1.9.0 ./store/dfrazxxvmf1xvx9z3b8nsdbnpmpnb06c-brotli-1.0.9-lib ./store/ds8j84qwv84gk66ma2r1acjc594xv12c-libxml2-2.9.12 ./store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation ./store/fq25i1pn7l2ibpcrvfqb13dwdlbd9lk6-aws-c-common-0.5.5 ./store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security ./store/gsjfl92mfnxqpniz2w3ffzjk6xc3wndr-openssl-1.1.1l ./store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit ./store/j9dvyz6iiv7z0g6ghrxnk2d71gbdss1n-ICU-66108 ./store/jrn76pssx7hafw3pjamfi2qp3fx9r4cl-curl-7.76.1 ./store/l85yzbnpl035b0lx1d1f615nfrhikg5d-nss-cacert-3.66 ./store/lbqb3kl2y6f10k1cm9g6l9kqbqz5bcrx-boehm-gc-8.0.4 ./store/li7i2d18pyf9ixl8bfn9axilpvc42jnl-libxml2-2.9.12 ./store/mi1ws67gh71y73xh164dgwr4kfl5yn5x-zstd-1.4.9 ./store/nch1d04ggyf5vll1hjsr8xixfsrcf2yq-libcxxabi-7.1.0 ./store/nxj1v1i38s984lxx8xmn2ynajhygni0n-bash-4.4-p23 ./store/pr5jawhqh1sad0q5b5mip31kxwzk7igj-libkrb5-1.18 ./store/qb8m2ilafqwjbg0z8nx1wd2jksp2f2rm-libsodium-1.0.18 ./store/riz4mzb1xhp36088ffnp40lz52bpxz01-nix-2.8.1 ./store/rmpxr8mclwf0w11w134xjzdr0a9xnfdm-bzip2-1.0.6.0.2 ./store/vqddywky23ya8pgw1mxkh5xl2rqc33n6-nghttp2-1.43.0-lib ./store/zlwlvcww0dm0psbxhmjvb57gbda6zagy-libarchive-3.5.2-lib /nix/store/

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

cp: cannot overwrite directory /nix/store/5r0j4bh564wgdznzpbpdqkp6xkjqha22-libkrb5-1.18/sbin with non-directory ./store/5r0j4bh564wgdznzpbpdqkp6xkjqha22-libkrb5-1.18/sbin
cp: cannot overwrite directory /nix/store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation/Library/Frameworks/CoreFoundation.framework/Versions/Current with non-directory ./store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation/Library/Frameworks/CoreFoundation.framework/Versions/Current
cp: cannot overwrite directory /nix/store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation/Library/Frameworks/CoreFoundation.framework/Headers with non-directory ./store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation/Library/Frameworks/CoreFoundation.framework/Headers
cp: cannot overwrite directory /nix/store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation/Library/Frameworks/CoreFoundation.framework/Modules with non-directory ./store/f43lci9lxr5nbm4wsf0qc6hdhzzimmbx-swift-corefoundation/Library/Frameworks/CoreFoundation.framework/Modules
cp: cannot overwrite directory /nix/store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Resources with non-directory ./store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Resources
cp: cannot overwrite directory /nix/store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources with non-directory ./store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources
cp: cannot overwrite directory /nix/store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current with non-directory ./store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current
cp: cannot overwrite directory /nix/store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Headers with non-directory ./store/g29afqkiqmxn9p868vfcsla5iv0hr66r-apple-framework-Security/Library/Frameworks/Security.framework/Headers
cp: cannot overwrite directory /nix/store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources with non-directory ./store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources
cp: cannot overwrite directory /nix/store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources with non-directory ./store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources
cp: cannot overwrite directory /nix/store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current with non-directory ./store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current
cp: cannot overwrite directory /nix/store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Headers with non-directory ./store/hvy3myc3ddgrm737w7gy7hrcdmwcs5ij-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Headers
cp: cannot overwrite directory /nix/store/pr5jawhqh1sad0q5b5mip31kxwzk7igj-libkrb5-1.18/sbin with non-directory ./store/pr5jawhqh1sad0q5b5mip31kxwzk7igj-libkrb5-1.18/sbin

---- oh no! --------------------------------------------------------------------
Jeeze, 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

@abathur
Copy link
Member

abathur commented May 27, 2022

You'll have to follow the uninstall instructions before reinstalling it: https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants