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 installation on Debian/Devuan not working #2627

Open
ineff opened this issue Jan 13, 2019 · 2 comments
Open

Nix installation on Debian/Devuan not working #2627

ineff opened this issue Jan 13, 2019 · 2 comments

Comments

@ineff
Copy link

ineff commented Jan 13, 2019

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
Copy link
Contributor

KaiHa commented Jan 14, 2019

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
Copy link

stale bot commented Feb 14, 2021

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

@stale stale bot added the stale label Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants