error attempting install on Fedora with existing single-user nix installation
## Error
```
Error:
0: Install failure
1: Error executing action
2: Action `configure_determinate_nixd_init_service` errored
3: Action `configure_init_service` errored
4: Failed to execute command `"systemd-tmpfiles" "--create" "--prefix=/nix/var/nix"`
stdout:
stderr: Detected unsafe path transition /nix (owned by efim) → /nix/var (owned by root) during canonicalization of nix/var/nix.
Detected unsafe path transition /nix (owned by efim) → /nix/var (owned by root) during canonicalization of nix/var/nix.
exited with status code: 73
```
## Metadata
|key|value|
|--|--|
|**version**|3.16.0|
|**os**|linux|
|**arch**|x86_64|
i rejected the revert plan that seemed to plan the deletion of nix store:
```
Installation failure, offering to revert...
Nix uninstall plan (v3.16.0)
Planner: linux (with default settings)
Planned actions:
* Remove the Determinate Nix daemon
* Remove the directory `/etc/tmpfiles.d` if no other contents exists
* Remove the SELinux policy for Nix
* Unconfigure the shell profiles
* Remove the Nix configuration in `/etc/nix/nix.conf`
* Unset the default Nix profile
* Remove Nix users and group
* Remove the directory tree in `/nix`
* Remove the Determinate Nix superpowers
* Remove the directory `/nix`
Proceed? ([Y]es/[n]o/[e]xplain): n
```
but now looks like previously existing nix installation is broken
```
nix --extra-experimental-features nix-command shell nixpkgs#hello -c hello
warning: unknown setting 'eval-cores'
warning: unknown setting 'lazy-trees'
error:
… This command may have been run as non-root in a single-user Nix installation,
or the Nix daemon may have crashed.
error: opening lock file '/nix/var/nix/db/big-lock': Permission denied
```
and i will have to do full reinstall
0 条评论