Skip to content

nix command not found by self-test and vscode remote ssh terminal #1791

@cfouche3005

Description

@cfouche3005

Error

Error: 
   0: Self test error, install may be only partially functional
      Shell `sh` failed self-test with command `"sh" "-lc" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-sh-1772664364333\"; system = \"x86_64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr:
      sh: 1: exec: nix: not found


      Shell `bash` failed self-test with command `"bash" "-lc" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-bash-1772664364339\"; system = \"x86_64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr:
      bash: line 1: exec: nix: not found


      Shell `fish` failed self-test with command `"fish" "-ic" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-fish-1772664364345\"; system = \"x86_64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr:
      fish: Unknown command: nix
      fish: 
      exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = "self-test-fish-1772664364345"; system = "x86_64-linux"; builder = "/bin/sh"; args = ["-c" "echo hello > \$out"]; }'
           ^~^


Metadata

key value
version 3.16.3
os Debian 13
arch x86_64

I can use nix in simple terminal but not in the vscode terminal

don't have this issue with the lix installer

How to reproduce (simple in Incus):
launch incus lxc container with debian/13/cloud image
install curl : apt install curl
run : curl -fsSL https://install.determinate.systems/nix | sh -s -- install
exit and open terminal
run /nix-installer self-test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions