nix
nix copied to clipboard
/etc/bash.bashrc.backup-before-nix contains NIX information
Describe the bug
According to the instructions I am getting on failure I get:
- 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.
However,the files contains this lines
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
Steps To Reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
nix-env --version output
Additional context
Add any other context about the problem here.
It's a sign nix was installed before the backups were taken, so you may need to clean it up manually.
I'd try:
- Run
grep "End Nix" /etc/*and manually remove those lines from any matching files that don't have the backup-before-nix extension. - Remove all of the files with the backup-before-nix extension.
- Follow the remaining appropriate macOS/Linux uninstall instructions before reinstalling it: https://nixos.org/manual/nix/stable/installation/installing-binary.html#uninstalling
Thank you.
I did that, as well as uninstalling from mac, it then worked.