Skip to content

Instantly share code, notes, and snippets.

@573
Last active July 12, 2024 09:12
Show Gist options
  • Save 573/c63b60d896558c79b02863da08c50940 to your computer and use it in GitHub Desktop.
Save 573/c63b60d896558c79b02863da08c50940 to your computer and use it in GitHub Desktop.
nix tip store path not found nix-store repair repair-path verify

Thanks ! To be fair, NixOS/nix#3230 already provided a (better) solution to links corruption, but was not advertised enough in this thread.

Fixing --repair-path avoids frustration in some cases but, as the warning message in my commit suggests, running a full store repair remains a good idea in that case.

For future reference, if you ever reach here: run nix-store --verify --check-contents --repair unless you have a good reason to repair only one of all the corrupt paths.

Le 11 janvier 2022 15:31:27 GMT+01:00, Ellie Hermaszewska @.***> a écrit :

oh my goodness 👏 👏 👏 👏

-- Reply to this email directly or view it on GitHub: NixOS/nix#1281 (comment) You are receiving this because you commented.

Message ID: @.***>

Originally posted by @layus in NixOS/nix#1281 (comment)

Followed by if needed, offending path, as root:

nix-store --repair-path /nix/store/w0cpwqkiim2b3cd8k0j5j1cz0s8kz87q-qemu-aarch64-binfmt-P-x86_64-unknown-linux-musl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment