-
Notifications
You must be signed in to change notification settings - Fork 59
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
Upgrade Nix #596
Comments
Hi! Generally
A PR to add the section you suggest would be welcome! It would fit best right below |
Created PR, closing this. |
From your install etc on macos I get
Uninstall failed as
OK I had a terminal open using a shell on nix so tried again and got a very long error message. |
@bestlem I am not sure what is causing your error. But since you have a long error message when you tried again, share that one here as well, it might help. I noticed after installing nix-darwin again via flakes (this experimental guide), that I am having the following error trying to upgrade:
I will reopen the issue, however, these errors seem to be unrelated to the nix-installer, so feel free to close it again. Edit: |
Unfortunately the error was too long for github - and I have now lost it. The issue seems to be how do you update nix and I am following your instructions. |
This time on a clean virtual machine sudo nix upgrade-nix change nix version from 2.15.0 to 2.15.1 with the warning that the home directory is incorrect - which I think is a sudo warning so nothing to do with nix. The questionI have now is how do I upgrade to the latest nix which I think is 2.17? |
I believe you may have been affected by some of the issues around the nix profile location changes of that version. If you have already used |
@mig4ng documented this process so I believe this ticket is closed. |
Hello, I have a some of questions:
nix upgrade-nix
?nix upgrade-nix
as sudo on MacOS? It showserror: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied
without it.sudo nix upgrade-nix
only updates to2.15.1
instead of2.17.0
?It would be nice to have a section on updating Nix with the DeterminateSystems installer. I can open a PR with it, it appears to be something like this:
Upgrade/Update Nix
Run the upgrade command:
Or, uninstall and run the installer again.
Originally posted by @Hoverbear in #595 (comment)
The text was updated successfully, but these errors were encountered: