-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Unable to remove GUI applications from /nix/store using garbage collection #1161
Comments
Well, as far as I know, the gui apps may need a reboot to finish the removal. |
I've tried multiple times but it's not disappearing at all. |
Usually when I run deleting '/nix/store/1zdm48k9nv0sf4n5qmipfj1z5zwwyzxc-discord-0.0.324'
0 store paths deleted, 0.00 MiB freed
error: chmod '"/nix/store/1zdm48k9nv0sf4n5qmipfj1z5zwwyzxc-discord-0.0.324/Applications/Discord.app"': Operation not permitted I get around it by just doing e.g: $ sudo nix store delete /nix/store/1zdm48k9nv0sf4n5qmipfj1z5zwwyzxc-discord-0.0.324/Applications/Discord.app/
/nix/store/1zdm48k9nv0sf4n5qmipfj1z5zwwyzxc-discord-0.0.324
[0.0 MiB DL]1 store paths deleted, 417.82 MiB freed |
I solved it by running There is currently a "bug" which prevents nix from deleting old generations when running as root, see NixOS/nix#8508 and https://discourse.nixos.org/t/home-manager-and-garbage-collection/41715 |
Description
I attempted to clean up /nix/store using both sudo nix-collect-garbage -d and nix-collect-garbage, but certain packages remain undeleted. The persistent packages are GUI applications such as Alacritty, Arc-Browser, Google Chrome...
Steps Taken
Expected Behavior
The garbage collection commands should remove unused packages from /nix/store
Question
What is the proper way to remove these GUI applications from /nix/store?
The text was updated successfully, but these errors were encountered: