0

After performing a git commit tag update on plutus-apps, I restarted my computer, and ran nix doctor --verbose and got the following FAIL

  [FAIL] Multiple versions of nix found in PATH:
    /nix/store/iq3ra93h9kxmnrw3zlxmqn8ng5w62dra-nix-2.5.1/bin
    /nix/store/j6fqvmsfhl4frzqn2f3bzhn8hr16j5q5-nix-2.5.1/bin

How do I correct this?

2
  • Updates on troubleshooting: 1. performed nix install sh <(curl -L https://nixos.org/nix/install) --daemon 2. read up on nix-store documentation 3. performed nix-store --delete /nix/store/j6fqvmsfhl4frzqn2f3bzhn8hr16j5q5-nix-2.5.1/bin to delete both instances, got "error: Cannot delete path /nix/store/... since it is still alive. To find out why, use: nix-store --query --roots.
    – TheStophe
    Jan 20, 2022 at 2:03
  • I may have created two profiles in /nix/var/nix/profiles/per-user/<username> as profile-link-1 and profile-link-2, potentially two different user environments. I may have done something twice and nix made two different user env rather than overrride. See nixos.org/manual/nix/stable/…
    – TheStophe
    Jan 20, 2022 at 2:31

1 Answer 1

0

I had success with just fully uninstalling nix.

However, uninstalling nix wasn't straight forward either (surprise!). From my research, here are options that worked.

How to uninstall nix:

  1. Script Github kintsugi/uninstall-nix-osx.sh

OR

  1. Manually follow Github Issue, How to remove nix #1402

    • I did this just as backup, #1 already worked, although there were some caution statements.
  2. RESTART COMPUTER

  3. In new tab, in ~/plutus-apps directory

    • nix doctor --verbose now all passes!

So far, the nix-build, nix-shell have worked too...

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jan 22, 2022 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.