NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.94k stars 1.53k forks source link

Installation Failed on macOS Monterey due to Firewall Interference #6657

Open ibehnam opened 2 years ago

ibehnam commented 2 years ago

I tried installing Nix on macOS Monterey using the official instruction for multiuser. But my firewall blocked Nix and the installation didn't succeed. After disabling firewall and re-running the installation, I keep getting this:

---- oh no! --------------------------------------------------------------------
I back up shell profile/rc scripts before I add Nix to them.
I need to back up /etc/bashrc to /etc/bashrc.backup-before-nix,
but the latter already exists.

Here's how to clean up the old backup file:

1. Back up (copy) /etc/bashrc and /etc/bashrc.backup-before-nix
   to another location, just in case.

2. Ensure /etc/bashrc.backup-before-nix does not have anything
   Nix-related in it. If it does, something is probably quite
   wrong. Please open an issue or get in touch immediately.

3. Once you confirm /etc/bashrc is backed up and
   /etc/bashrc.backup-before-nix doesn't mention Nix, run:
   mv /etc/bashrc.backup-before-nix /etc/bashrc

I followed the instructions but the problem doesn't get solved.

abathur commented 2 years ago

You don't say how far it got before, so it may help to follow the uninstall instructions before trying again: https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos