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

not able to install nix after unistalling on Mac OS seqoia #12389

Open
AT042024-stack opened this issue Jan 31, 2025 · 1 comment
Open

not able to install nix after unistalling on Mac OS seqoia #12389

AT042024-stack opened this issue Jan 31, 2025 · 1 comment

Comments

@AT042024-stack
Copy link

I am using this command "curl -L https://nixos.org/nix/install | sh" to instal nix earlier it works fine but when i went to install some package nix was not there so i tried to reinstall but got the error below.

Note : I have followed the steps mentioned already but no luck.

Any help would be great!

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

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
aijazahmad@MacBookAir ~ %

@abathur
Copy link
Member

abathur commented Jan 31, 2025

I'd recommend following the full uninstall instructions in the manual before reinstalling it: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos

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