[Nix-dev] unable to delete a store path

Shea Levy shea at shealevy.com
Wed Sep 26 12:36:45 CEST 2012


On 09/26/2012 06:01 AM, Mathijs Kwik wrote:
> Hi all,
>
> I have a store path that seems to refer to itself only, but I can't delete it.
> How can I proceed?
>
>
> mathijs at bluebook nixos% nix-store --query --referrers-closure
> /nix/store/q6qapspkz2g4jlgnagiabrfvw32say9v-xine-lib-1.2.2
> /nix/store/q6qapspkz2g4jlgnagiabrfvw32say9v-xine-lib-1.2.2
>
> mathijs at bluebook nixos% nix-store --query --roots
> /nix/store/q6qapspkz2g4jlgnagiabrfvw32say9v-xine-lib-1.2.2

There's your answer. You need to remove the gcroot (most likely 
something in
/nix/var/nix/gcroots or a subdirectory) pointing to this path before 
deleting it.
> mathijs at bluebook nixos% nix-store --delete
> /nix/store/q6qapspkz2g4jlgnagiabrfvw32say9v-xine-lib-1.2.2
> finding garbage collector roots...
> error: cannot delete path
> `/nix/store/q6qapspkz2g4jlgnagiabrfvw32say9v-xine-lib-1.2.2' since it
> is still alive
> 0 store paths deleted, 0.00 MiB freed
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



More information about the nix-dev mailing list