-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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-channel --update' stopped working on nix-2.2.1: error: while setting up the build environment: getting attributes of path '': No such file or directory #2673
Comments
Found out today it was not completely working workaround. I got to the failure: I built nix from source and did not pass
I worked around it locally by passing To make problem harder to encounter I suggest to:
Thanks! |
This certainly seems in the territory of Offhand 2) just seems like an omission---likely because it doesn't happen very often. Anyway, mentioning source sounds great, good idea! |
Note that the Gentoo ebuild still seems to be broken. When updating, I get this error:
|
Please report it to http://bugs.gentoo.org/ and we'll try to sort out your problem. |
I'm having this same problem on ArchLinux with nix 2.2.2, and at least one more person it's having it too (https://aur.archlinux.org/packages/nix/#comment-690619).
Then I have recompiled it with each of:
With the last option, for instance the error is now:
|
Removing the Arch package, the previous /nix, and installing through |
@renatoGarcia, I've fixed the Nix package in Arch Linux now by adding a bit of complex For others who are trying to work this out, the full set of scripts that you might need are listed in I also tried to use busybox, but it seems that shell provided by busybox is not full-featured enough. |
This problem should go away once #2748 is merged. It makes |
Fix `nix-channel --update` does not work on freshly-installed nix. `nix-channel --update` does a few main things: 1. fetch new tarball with nix expressions 2. unpack that tarball as part of the build system using a shell script derived by unpack-channel.nix. 3. install the result into /nix/store [2.] fails because tarball unpacking runs in a sandboxed environment in a container with /nix/store and /bin/sh mounted. unpack-channel.nix needs bash, tar and xz binaries in PATH. These are normally provided by bash, tar and xz packages from /nix/store. Unfortunately bash, tar and xz packages are not yet fetched as we only have nix installed without nixpkgs tree. 1. we patch unpack-channel.nix to only require 'sh' 2. we use /bin/sh as a static busybox and point nix at it: ./configure --with-sandbox-shell=/bin/busybox Reported-by: Kirill Zaborsky Closes: https://bugs.gentoo.org/693482 Bug: NixOS/nix#2673 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
I'm still seeing this issue, or similar: |
I marked this as stale due to inactivity. → More info |
Still not working, I've just tested in Arch with nix |
Let's close it as obsolete as |
The install is a
nix
install onGentoo
(not a NixOS).I tried
strace
-ingnix-env
and runningnix-daemon
but I did not find where that''
path comes from. Cannix
be improved to dump more information on where that path comes from?Some version info:
ottidmes on #nixos linked me to a thread about /bin/sh out of nix: https://logs.nix.samueldr.com/nixos/2019-02-06#1938291
Working workaround:
The text was updated successfully, but these errors were encountered: