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

Nix fails to create some temporary symlinks #484

Closed
Sciencentistguy opened this issue Jul 31, 2022 · 3 comments · Fixed by #1152
Closed

Nix fails to create some temporary symlinks #484

Sciencentistguy opened this issue Jul 31, 2022 · 3 comments · Fixed by #1152

Comments

@Sciencentistguy
Copy link

On aarch64-darwin, I get the following output from nix:

<N> ➜ darwin-rebuild -L --flake /Users/jamie/Git/nixfiles switch
building the system configuration...
error: cannot link '/nix/store/.tmp-link-64480-79859421' to '/nix/store/.links/0i6ypwi0pzkgpxxqprlpyik72zxzkvkzrj7ahqj5b6hmhv2ldxm0': File exists
error: cannot link '/nix/store/.tmp-link-64480-1103639509' to '/nix/store/.links/0dwrq1sy5fawdjjvm0na718awbd10xn6dg3i0xxg9f7r5d9aa968': File exists
...

I have to pass --fallback to darwin-rebuild to get it to work.

@dj95
Copy link

dj95 commented Aug 6, 2022

Same for me on two systems. One is an intel MBP and the other one aarch64-darwin as well.

@malob
Copy link
Contributor

malob commented Aug 29, 2022

This has also come up for me on aarch64-darwin from time to time. In my case running the command again solved the issue. Don't really have any idea what's causing it.

@Enzime
Copy link
Collaborator

Enzime commented Nov 8, 2024

I believe this is an issue when the Nix setting auto-optimise-store is enabled

See NixOS/nix#7273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants