Open ShamrockLee opened 2 years ago
@ShamrockLee Does running chmod -R 777 .nix-portable
and then running rm -rf .nix-portable
work for you?
Some directories in the nix store do not have the writable bit set; rm -f
will delete "read only" files that are owned by your user but will not delete "read only" directories (afaik), hence the error. Because the folders are owned by your user you have permissions to run chmod
.
@rrbutani It works! Thanks a lot!
It would be helpful to document this as a "way to clean-up" and a workaround of #25.
maybe run chmod -R +w
after every extraction or build
doing chmod -R +w
too early in the build process would break CA derivations
related nix sources ...
Reproduction step:
NP_LOCATION
on ram-based file system.rm cannot remove '.nix-portable/store/...': permission denied
error.