-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Installing Nix fails on Ubuntu 18.04.1 LTS Error: cloning builder process: Invalid argument #2651
Comments
I have the same problem with Debian Stretch 9.6 running on an OpenVZ hypervisor. Trying out strace leads me to the following lines that seem relevant:
|
Looking through http://man7.org/linux/man-pages/man2/clone.2.html#ERRORS - on my system it seems most likely to be one of the options NEWIPC, NEWNET, NEWPID, or NEWUTS, where the manpage says "[...] was specified in flags, but the kernel was not configured with the [...] option". And given my experience with the OpenVZ host, I'm inclined to think this is the problem. |
As for the WSL issue - googling leads me to issues like microsoft/WSL#2242, but every clone-related issue I found was already closed. @braedenf What's your WSL or Windows release? |
Or better: @braedenf can you also attach your strace output? Assuming we're using the same binary, this should work for you as well: |
The OS version of Windows I am using is : 17134.523. I do not have the ~/nix/.. directory as the nix installer didn't get that far. Do you think I need to configure my profile for nix to build correctly, as that is what the error seems to indicate? |
I have done some digging and the common issue with WSL and Nix is that WSL's system paths are too long. I have enabled NTFS Win32 long path support, however I still have the same error. The error I get with the strace command is -
|
It looks as though the issue may relate to "/nix/var/nix/db/db.sqlite". |
Can you try installing nix after having created
? |
The installer refuses to start when /etc/nix exists, but I'll try to work around it |
Exact same error on CentOS Linux release 7.6.1810 (Core) EDIT: although, creating |
I added |
I was unable to install using the installer itself after creating
Strace shows me a different error when running
The solution for this is #1882 - setting I'm still getting |
Oh wow so OpenVZ has only the |
workaround for me was to use 2.1.3 installer:
|
This worked for me with the Debian WSL. |
By the way, for a single user install, you can put the configuration in ~/.config/nix/nix.conf instead, and the installer will not refuse to run. |
Can reproduce on CentOS7, doing a |
- echo 'sandbox = false' | sudo tee /etc/nix/nix.conf via NixOS/nix#2651; - nbextensions build was failing due to libxml2; fix with adding python37Packages.lxml to NIX_PYTHON_PACKAGES
- echo 'sandbox = false' | sudo tee /etc/nix/nix.conf via NixOS/nix#2651; - nbextensions build was failing due to libxml2; fix with adding python37Packages.lxml to NIX_PYTHON_PACKAGES
Could someone point me to the install script that does the single-user install? It would be really nice to add the two workarounds into the install script. It should be fairly easy to verify that this only happens on WSL according to StackOverflow |
Nix ( |
I can confirm that adding the following options in
Running the install script then succeeded. Tested on Windows 10 Subsystem for Linux using Ubuntu 18.04 and nix version 2.2.2. |
Had similar problem while trying to repair NixOS partition mounted on a non-NixOS system. Could not change
Note that |
I marked this as stale due to inactivity. → More info |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cross-compilation-failing-with-nix-and-docker-on-macos/22169/4 |
Hi
I am running Ubuntu Linux on my Windows 10 machine using WSL, I have installed may packages on WSL before and have not had many issues. I have tried various methods to install nix, but get similar results. I have seen related issues for Ubuntu, however the issue usually relates to permission errors.
Here is the output when I run
curl https://nixos.org/nix/install | sh
:The text was updated successfully, but these errors were encountered: