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

error: path '/nix/store/52k8rqihijagzc2lkv17f4lw9kmh4ki6-gnugrep-3.11-info' is not valid #260288

Closed
mobsenpai opened this issue Oct 10, 2023 · 6 comments

Comments

@mobsenpai
Copy link

Describe the bug

This is the error I am having after latest 'nix flake update' and then 'sudo nixos-rebuild switch --flake ...'

error: path '/nix/store/52k8rqihijagzc2lkv17f4lw9kmh4ki6-gnugrep-3.11-info' is not valid

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix flake update
  2. sudo nixos-rebuild switch --flake .#acer

Expected behavior

nixos-rebuild should succeed without error

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

This happened with me around one week ago, and then I had to revert back to previous update. I thought if would be fixed in the new updates but even now I am not able to build. Please help!
my dotfile: https://github.com/MobSenpai/dotfiles.git

Notify maintainers

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.5.5, NixOS, 23.11 (Tapir), 23.11.20230925.6500b45
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.17.0
  • nixpkgs: /nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.5, NixOS, 23.11 (Tapir), 23.11.20230925.6500b45`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - nixpkgs: `/nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source`
@Kranzes
Copy link
Member

Kranzes commented Oct 10, 2023

Probably related to NixOS/nix#9052

@mobsenpai
Copy link
Author

Probably related to NixOS/nix#9052

What should I do then?

@Kranzes
Copy link
Member

Kranzes commented Oct 10, 2023

Not use 2.18. For about a week now unstable has reverted nixUnstable to be 2.17.

@mobsenpai
Copy link
Author

I tried changing this line https://github.com/MobSenpai/dotfiles/blob/f9d579a0cdca6ed6eec35af9e5faca292e9e9c76/hosts/shared/nix.nix#L44 to pkgs.nixVersions.nix_2_17
but it didn't work

Not use 2.18. For about a week now unstable has reverted nixUnstable to be 2.17.

@Kranzes
Copy link
Member

Kranzes commented Oct 10, 2023

You daemon also has to use 2.17, did you try rebooting?

@mobsenpai
Copy link
Author

I think I somehow broke my nixos install. Reinstalling fixes it.

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

No branches or pull requests

2 participants