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

Multi user Installation failed #4797

Closed
FranciscoAndaur opened this issue May 12, 2021 · 2 comments
Closed

Multi user Installation failed #4797

FranciscoAndaur opened this issue May 12, 2021 · 2 comments

Comments

@FranciscoAndaur
Copy link

Installation failed

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

$ sudo mkdir -pv -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/gcroots/per-user /nix/var/nix/profiles/per-user

to make the basic directory structure of Nix (part 1)

mkdir: /nix: Read-only file system
mkdir: /nix/var: Read-only file system
mkdir: /nix/var/log: Read-only file system
mkdir: /nix/var/log/nix: Read-only file system
mkdir: /nix/var/log/nix/drvs: Read-only file system
mkdir: /nix/var/nix: Read-only file system
mkdir: /nix/var/nix/db: Read-only file system
mkdir: /nix/var/nix/gcroots: Read-only file system
mkdir: /nix/var/nix/profiles: Read-only file system
mkdir: /nix/var/nix/temproots: Read-only file system
mkdir: /nix/var/nix/userpool: Read-only file system
mkdir: /nix/var/nix/gcroots/per-user: Read-only file system
mkdir: /nix/var/nix/profiles/per-user: Read-only file system

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

I'm using a MacbookPro from 2017

Steps To Reproduce

  1. sh <(curl -L https://nixos.org/nix/install). --daemon
  2. hit yes on everything
  3. See error

Expected behavior

nix installed properly.

nix-env --version output

Additional context

I did try installing nix earlier using
curl -L https://nixos.org/nix/install | sh
and I followed instructions online on how to delete it. Maybe that's the case. I missed something.

because it created a file in the ROOT directory that was read only.

@abathur
Copy link
Member

abathur commented May 13, 2021

@FranciscoAndaur The underlying issue here is fixed in #4289 (but a new release hasn't been cut since it was merged), so I'll focus on trying to get you back on the road.

Did you have a Nix install before the initial attempt you mention? This sounds like what happens when you have a previous install that still has nix in /etc/synthetic.conf (or one that hasn't been rebooted since it was removed).

synthetic.conf causes macOS to create an empty read-only root folder which is intended to be used as a mount point for the Nix volume. There's a gap in the check used in the most-recent Nix release (2.3.10) that decides if you need a Nix volume before the install can continue.

If you find it there, I think you can proceed one of two ways:

  1. remove the file if Nix is the only entry, or remove the line otherwise.
  2. Check for nix in /etc/fstab. If you find it there, remove it via sudo vifs.
  3. Check for an existing Nix volume (in the graphical Disk Utility, or with diskutil list). If so, destroy the data volume using the GUI or diskutil apfs deleteVolume <disk_identifier>.
  4. Re-run whatever uninstall steps you used before.
  5. Once you've got it cleaned up, reinstall with one of the below:

@stale
Copy link

stale bot commented Nov 16, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Nov 16, 2021
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