-
-
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
nix upgrade-nix
is broken
#5473
Comments
I am stuck with the same problem. Is there any workaround? |
@kamoii If you have installed nix with |
@smaret |
Same here, installed with nix install script so |
Are there any workarounds to this problem? |
@derekmahar essentially it's after that hope that helps disclaimer: all the above works for me in single-user nix installation in openSUSE Tumbleweed, not NixOS |
Workaround:
, then record the path to the nix executable
|
@lkupcsik When I try this I get an error: Any idea how to continue? EDIT: |
I wrote a script which fully automates the steps in your workaround:
|
I'm surprised I had to do this still in 2023. |
Also check that Nix can be upgraded before running `nix upgrade-nix` to work around a bug. See: <NixOS/nix#5473>
Make `nix upgrade-nix` a separate step Also check that Nix can be upgraded before running `nix upgrade-nix` to work around a bug. See: <NixOS/nix#5473>
NixOS/nix#5473 I dont have confidence this way is...
what about |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-upgrade-nix-fails-with-mysterious-error/26875/2 |
I don't know why, but i do some upgrade by following the doc here https://nixos.org/manual/nix/stable/installation/upgrading |
i also struggle with this. before i had version
and its broken complete:
thanks lord for
|
Describe the bug
It seems that
nix upgrade-nix
is incompatible withnix profile
.Steps To Reproduce
nix profile install nixpkgs#hello
nix upgrade-nix
. The following error is displayed:Expected behavior
nix upgrade-nix
should upgrade to the latest stable releasenix-env --version
outputAdditional information
Relevant line in nix source code:
nix/src/nix/upgrade-nix.cc
Line 122 in 7c90552
The text was updated successfully, but these errors were encountered: