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
Installer bootstrapping issue due to nix 2.20.3 missing from nixpkgs #10109
Comments
e-nikolov
changed the title
Profile manifest version issue
Installer bootstrapping issue due to nix 2.20.3 missing from nixpkgs
Feb 28, 2024
Simpler reproduction steps: # 1. Create a new ubuntu WSL VM and start a bash session
# 2. Install nix
sh <(curl -L https://nixos.org/nix/install) --daemon
# 3. Restart the session / source ~/.bashrc so that nix becomes available
nix --version
# Output:
# nix (Nix) 2.20.4
# 4. Install nix via nix
nix --extra-experimental-features nix-command --extra-experimental-features flakes install nixpkgs#nix
# 5. Restart the session so that nix from the local profile becomes available
nix --version
# Output:
# nix (Nix) 2.18.1
# 6. Try to install anything else via nix
nix --extra-experimental-features nix-command --extra-experimental-features flakes profile install nixpkgs#hello
# Output:
# error: profile manifest '/home/test/.local/state/nix/profiles/profile/manifest.json' has unsupported version 3
|
is there a temporary fix for this? |
I guess a workaround would be to either:
|
thufschmitt
added a commit
that referenced
this issue
Mar 5, 2024
Try and prevent the situation of #10109 to happen again in the future
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-03-04-nix-team-meeting-minute-130/40830/1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I install nix via the installer, I get nix v2.20.3, which has a new profile manifest version (3).
However, nixpkgs currently only has nix v2.19.3, which still uses the old manifest.
When dealing with a new machine, I usually install nix via the installer and then use home-manager to declaratively manage/update it. Right now, however because nix v2.20.3 is not yet available on nixpkgs, home-manager installs a version of nix that does not understand the new manifest version and I get errors:
The same issue would happen if I directly use nix profile install instead of home-manager.
Platform
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: