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

[regression] error: chmod operation not permitted #6765

Open
piegamesde opened this issue Jul 5, 2022 · 1 comment
Open

[regression] error: chmod operation not permitted #6765

piegamesde opened this issue Jul 5, 2022 · 1 comment
Labels

Comments

@piegamesde
Copy link
Member

Describe the bug

I just upgraded my Nix from 2.3 to 2.8, and now collecting garbage fails:

finding garbage collector roots...
removing stale temporary roots file '/nix/var/nix/temproots/16098'
deleting garbage...
deleting '/nix/store/2h7xciwzgqc3rlssfm6njyz97699n4k5-root-path-files'
1 store paths deleted, 0.00 MiB freed
error: chmod '/nix/store/2h7xciwzgqc3rlssfm6njyz97699n4k5-root-path-files': Operation not permitted

Steps To Reproduce

  1. nix-store --gc

Expected behavior

It doesn't fail. In case this is a one-off issue, maybe the error message could at least provide me with enough information to manually set the permissions (in case that actually solves the issue).

nix-env --version output

nix-env (Nix) 2.8.1

Additional context

This is a single-user Nix install on Arch Linux. There are issues with a similar error message for Darwin installs: #3435 #6667. Re-installing Nix on my system to "solve" the problem is a non-starter.

@tomberek
Copy link
Contributor

Likely needs better "--repair" options? Otherwise I don't know how to address this problem.

@stale stale bot removed the stale label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants