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

How do I uninstall nix-darwin or rollback previous version when nix can not build the uninstaller #815

Closed
ylbeethoven opened this issue Nov 22, 2023 · 2 comments

Comments

@ylbeethoven
Copy link

ylbeethoven commented Nov 22, 2023

Hi,

Does anyone know how to uninstall nix-darwin when nix can't build the uninstaller and darwin-switch is gone? In fact, the whole /run/current-system/sw/* is gone.

mpro14% nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: unable to download 'https://cache.nixos.org/5vfv3x1l1y7dg8npyq3g8pgyj1g3axfb.narinfo': Problem with the SSL CA cert (path? access rights?) (77)

I also tried to uninstall nix but that did not work either.

mpro14% /nix/nix-installer uninstall
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
`nix-darwin` installation detected, it must be removed before uninstalling Nix. Please refer to https://github.com/LnL7/nix-darwin#uninstalling for instructions how to uninstall `nix-darwin`.

Does anyone know how I can build again?

Thank you

@yysushi
Copy link

yysushi commented Nov 25, 2023

For the SSL error, you can check this comment.
https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/5

@ylbeethoven
Copy link
Author

ylbeethoven commented Nov 29, 2023

I can't remember which tutorial I followed, I solved the issue by generating a new ca certificate manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants