-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Problem
After resolving the uninstall issues (#1234 (comment)), I have proceeded to do a fresh reinstall using the latest curl approach:
$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Attempting to install hello results in a permissions error:
$ nix profile install 'nixpkgs#hello'
error: filesystem error: in create_symlink: Permission denied ["/nix/store/phhb2r7x8vv2q19g0zgib79bnws26lm5-profile"] ["/nix/var/nix/profiles/default-2-link.tmp-21642-675601655"]I could do a sudo chown -R $USER:staff /nix/store/ but that may break other functionality as it relates to upgrading nix itself.
Notes
current nix/profiles structure:
$ lst -la /nix/var/nix/profiles
drwxr-xr-x - root 23 Oct 16:58 /nix/var/nix/profiles
lrwxr-xr-x@ - root 23 Oct 16:58 ├── default -> default-1-link
lrwxr-xr-x@ - root 23 Oct 16:58 ├── default-1-link -> /nix/store/3k8kskx5spyh8b3cpcgamxwa5b968nv2-user-environment
drwxr-xr-x@ - root 23 Oct 16:53 └── per-user
drwxr-xr-x - root 23 Oct 16:53 └── root
lrwxr-xr-x - root 23 Oct 16:53 ├── profile -> profile-2-link
lrwxr-xr-x - root 23 Oct 16:53 ├── profile-1-link -> /nix/store/2jmz18bzl8aqzc3b3cw4i9m0lm31zfm3-user-environment
lrwxr-xr-x - root 23 Oct 16:53 └── profile-2-link -> /nix/store/wa1h26xv52nh3833bl4x86fnhxqbi4y7-user-environment$ nix profile list
Name: nix
Store paths: /nix/store/1n95r340s7p3vdwqh7m94q0a42crahqq-nix-2.24.9
Name: nss-cacert
Store paths: /nix/store/9x1bbfhmnsycfq8p5y790jylnjiv0yif-nss-cacert-3.101Listing profiles also resulted in a permission error:
$ sudo nix-env --list-generations
Password:
Sorry, try again.
Password:
warning: $HOME ('/Users/mkatychev') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
1 2024-10-23 16:53:07
2 2024-10-23 16:53:07 (current)- The issue persisted despite doing the workaround below:
After removing 0.8.0 and installing 0.9.0, manynix profilecommands fail #477 (comment) - all of the derivations in
/nix/store/are currently owned by root:.r--r--r-- 2.0k root 31 Dec 1969 qh8iqn73axy86j1lc4p6rhcjq4ikw35f-nix.xcconfig.drv
- issue persists after system restart
System:
OS: macOS 14.6.1 23G93 arm64
Host: MacBookPro17,1
Kernel: 23.6.0
Uptime: 1 min
Packages: 303 (brew), 51 (nix-user)
Shell: zsh 5.9
Resolution: 1440x900
DE: Aqua
WM: Rectangle
Terminal: tmux
CPU: Apple M1
GPU: Apple M1
Memory: 2300MiB / 16384MiB
Metadata
Metadata
Assignees
Labels
No labels