-
-
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
Nix Installation Failure on "Bash on Ubuntu on Windows" #1038
Comments
An important thing to note is that even if it served a proper binary, it wouldn't work because Nix currently doesn't work on Windows. I tracked it down to a failing |
I heard that nix binaries have a custom ELF interpreter (aka the dynamic linker) which the Windows Linux subsystem doesn't yet support. |
Related microsoft/WSL#743 |
This has been fixed by Microsoft in the latest Windows Insider builds. |
Issue description
As a Windows 10 user, I want to use Nix to manage packages in my "Bash on Ubuntu on Windows" environment.
I follow the Nix installation instructions, which is
bash <(curl https://nixos.org/nix/install)
, but I get an error:cannot execute binary file: Exec format error
. See "Steps to reproduce", below.It seems the "nix-store" binary can't be executed. I did
readelf -a $NIX_STORE
, which shows the following summary at the top:(Moved from nixpkgs issue: NixOS/nixpkgs#17915)
Steps to reproduce
After installing "Bash on Ubuntu on Windows", enter a bash shell and execute the Nix installation command to see the following results:
Technical details
** Windows 10 Pro, Version 1607, OS Build 14393.51, System type 64-bit OS, x64-based CPU (Intel Core i5-5200U)
**
uname -a
: Linux ALEX-CARBON 3.4.0+ The sync option #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: