-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Uninstall directions do not work #3900
Comments
@raxod502-plaid It looks like (probably new in Catalina), macOS is requiring the Full Disk Access permission in order to modify these files. Workaround (for anyone needing to remove these files to finish uninstalling Nix):
Fixing this in the installerThe closest we can probably get to a real fix is either :
I don't think the latter is worth exploring unless the former fails for some reason... mixed thoughts:
|
Thank you for the response! I really appreciate it. Unfortunately, while enabling the Full Disk Access permission fixes the
Does that require an additional step? Unmounting and re-mounting the Nix volume does not seem to affect this. While investigating this, I discovered that I could delete the Nix volume via Disk Utility, which seemed prudent to follow as an uninstall step. However, I now receive this error message instead:
|
The Catalina-specific install prints a set of Catalina-specific uninstall instructions; I think they are the gap here: nix/scripts/create-darwin-volume.sh Lines 106 to 113 in 2a7ea2e
I imagine you may also need to reboot for all of that to take. |
Yes, you are exactly right. Those steps successfully remove the |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/anyone-up-for-picking-at-some-nix-onboarding-improvements/13152/6 |
I marked this as stale due to inactivity. → More info |
Still a problem on Monterey, there is no Whenever I get around to updating my uninstall script, I'll add M1/Monterey and post it here. |
@jeff-hykin This isn't true. This issue is also quite old, and there are updated official uninstall instructions at https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos. If you have a Nix Store volume but don't see it in nix/scripts/create-darwin-volume.sh Lines 517 to 543 in 3ae9467
|
@abathur so.. ? maybe there is some way to add an /etc/fstab but mine doesn't exist |
Thanks for the updated instructions though. It contains the diskutil command I was going to try to find on my own:
The CLI installer still gives outdated instructions though (the original issue). But if the CLI installer mentions that URL, "Looks like you already have Nix installed. If you need to uninstall Nix see: https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos" then I think this issue can be closed. |
/etc/fstab is a file the user can create for specifying volume mounts, not something the system will ship with or create for you. See (And like I said before, running the installer a 2nd time might explain why yours is missing despite having nix installed. ) |
it does not. Which is why I was saying:
|
If re-running the installer does not explain what you reported (as opposed to your assertion that on Monterey "there is no fstab cause volumes are handled differently"), why would adding a message to the installer fix your problem? Regardless of the cause in your case, I agree that CLI messaging around uninstall instructions should be better. |
This github issue ("Uninstall directions do not work"). I followed the uninstall directions, they result in errors, and I had to go hunting for the full install directions.
Then we're on the same page 👍 . |
Which ones?
Which one? You've never quoted a message or posted a log. The installer has changed somewhat since this old issue was opened. The message I quoted earlier in this thread is now only emitted if someone directly executes or sources scripts/create_darwin_volume.sh (i.e., it only prints in a legacy mode for people depending on directly running the old script; this is not how the normal installer does it). Aside from that message, the only other instructions mentioned in this issue are the OP's link to a 2017 comment on a different issue. |
|
The docs now include the manual uninstall steps: https://github.com/NixOS/nix/blob/master/doc/manual/src/installation/installing-binary.md#uninstalling |
Well I'll be damned, this worked! Never seen a pm so weird to uninstall. Thanks! |
Here's the updated location of the macOS uninstallation instructions: https://github.com/NixOS/nix/blob/master/doc/manual/src/installation/uninstall.md#macos |
Describe the bug
The instructions at this issue comment to uninstall Nix do not work.
Steps To Reproduce
Expected behavior
The directory should have been deleted. Apparently, some additional step is required. As suggested later in the linked issue thread, I already tried mounting, unmounting, rebooting, but to no avail.
nix-env --version
outputNot available since I am trying to uninstall and already deleted the binaries.
Additional context
macOS Catalina, 10.15.6
The text was updated successfully, but these errors were encountered: