Cant install nix!

hi everyone, im having hell time installing Nix on Debian i literally spent the whole fucking day trying!! after i tried installing the daemon but it says ''It seems the build group nixbld already exists, but
with the UID 997. This script can’t really handle
that right now, so I’m going to give up.

You can fix this by editing this script and changing the
NIX_BUILD_GROUP_ID variable near the top to from 30000
to 997 and re-run."
how would i even edit this script sir? can you please provide me more information?

1 Like

Use your favourite editor like Emacs, vim, vscode, whatever, edit the mentioned line, save, rerun.

Mostly to connect dots, this is the subject of `install-multi-user.sh` asks user to "edit this script" when it's invoked by the `curl | sh` script · Issue #4915 · NixOS/nix · GitHub.

My first comment in that thread includes some notes on how you can approach changing it.

1 Like

Use your favourite editor like Emacs, vim, vscode, whatever, edit the mentioned line, save, rerun.

Here is the problem. This error message is entirely useless because you simply cannot find the file to edit. The https://nixos.org/nix/install script is not the one you want to edit - It downloads the actual installer, extracts it into a random temporary directory, and deletes it when an error occurs. In other words, when you see this error message the files simply don’t exist anymore!

1 Like

OH, sorry about my snippy answer then. I assumed that https://nixos.org/nix/install was the script to edit, and not some second or third level helper script…

Alternatively and for Debian specifically, you might want to try nix-bin from the Debian repositories if this script doesn’t work. I haven’t used it and it’s not the most recent version of Nix, but it will probably bootstrap everything correctly and you can progress from there.

https://packages.debian.org/bullseye/nix-bin

1 Like
Hosted by Flying Circus.