NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.88k stars 1.53k forks source link

Nix installation on Debian/Devuan not working #2627

Open ineff opened 5 years ago

ineff commented 5 years ago

I am trying to install the nix-package manager in a Debian/Devuan system, basically using the installation script at https://nixos.org/nix/install

In order to allow to nix to work I have setted the kernel variable kernel.unprivileged_userns_clone, nevertheless I get the following error

performing a single-user installation of Nix... copying Nix to /nix/store................................. initialising Nix database... installing 'nix-2.2.1' error: while setting up the build environment: cannot change root directory to '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv.chroot': No such file or directory ./install: unable to install Nix into your default profile

Trying to execute step by step the installation script inside the bzip downloaded by the install script it seems that the process fails at line 125

if ! "$nix/bin/nix-env" -i "$nix"; then echo "$0: unable to install Nix into your default profile" >&2 exit 1

while executing nix-env.

Indeed trying to execute the command return the following error.

installing 'nix-2.2.1' error: while setting up the build environment: cannot change root directory to '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv.chroot': No such file or directory

Here is the strace of the above mentioned command.

Please ask for any additional help you may need.

KaiHa commented 5 years ago

Hi @ineff, if you adventurous enough to compile a Debian package of Nix from source, then you can take a look at https://github.com/KaiHa/nix-debian.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info