NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.6k stars 1.51k forks source link

hello here is there issue i face as a new #8347

Open play2323 opened 1 year ago

play2323 commented 1 year ago

Platform

please resolve - [ ] Linux:

Additional information

Output

~/Alpaca-Arbitrage-Playbots-1$ sh <(curl -L https://nixos.org/nix/install) --daemon % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4052 100 4052 0 0 20285 0 --:--:-- --:--:-- --:--:-- 20285 downloading Nix 2.15.0 binary tarball for x86_64-linux from 'https://releases.nixos.org/nix/nix-2.15.0/nix-2.15.0-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.EVuMwfMntL'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:100 21.0M 100 21.0M 0 0 95.8M 0 --:--:-- --:--:-- --:--:-- 95.5M Note: a multi-user installation is possible. See https://nixos.org/manual/nix/stable/installation/installing-binary.html#multi-user-installation Switching to the Multi-user Installer Welcome to the Multi-User Nix Installation

This installation tool will set up your computer with the Nix package manager. This will happen in a few stages:

  1. Make sure your computer doesn't already have Nix. If it does, I will show you instructions on how to clean up your old install.

  2. Show you what I am going to install and where. Then I will ask if you are ready to continue.

  3. Create the system users and groups that the Nix daemon uses to run builds.

  4. Perform the basic installation of the Nix files daemon.

  5. Configure your shell to import special Nix Profile files, so you can use Nix.

  6. Start the Nix daemon.

Would you like to see a more detailed list of what I will do? [y/n] y

I will:

Ready to continue? [y/n] y

---- let's talk about sudo ----------------------------------------------------- This script is going to call sudo a lot. Every time I do, it'll output exactly what it'll do, and why.

Just like this:

---- sudo execution ------------------------------------------------------------ I am executing:

$ sudo echo

to demonstrate how our sudo prompts look

This might look scary, but everything can be undone by running just a few commands. I used to ask you to confirm each time sudo ran, but it was too many times. Instead, I'll just ask you this one time:

Can I use sudo? [y/n] y

Yay! Thanks! Let's get going!

~~> Checking for artifacts of previous installs Before I try to install, I'll check for signs Nix already is or has been installed on this system. /tmp/nix-binary-tarball-unpack.EVuMwfMntL/unpack/nix-2.15.0-x86_64-linux/install-systemd-multi-user.sh: line 56: systemctl: command not found /tmp/nix-binary-tarball-unpack.EVuMwfMntL/unpack/nix-2.15.0-x86_64-linux/install-systemd-multi-user.sh: line 57: systemctl: command not found

---- warning! ------------------------------------------------------------------ Nix already appears to be installed. This installer may run into issues. If an error occurs, try manually uninstalling, then rerunning this script.

Uninstalling nix:

  1. Delete the files Nix added to your system:

    sudo rm -rf "/etc/nix" "/nix" "/root/.nix-profile" "/root/.nix-defexpr" "/root/.nix-channels" "/root/.local/state/nix" "/root/.cache/nix" "/home/runner/.nix-profile" "/home/runner/.nix-defexpr" "/home/runner/.nix-channels" "/home/runner/.local/state/nix" "/home/runner/.cache/nix"

and that is it.

---- warning! ------------------------------------------------------------------ We did not detect systemd on your system. With a multi-user install without systemd you will have to manually configure your init system to launch the Nix daemon after installation.

Do you want to proceed with a multi-user installation? [y/n] y

---- Nix config report --------------------------------------------------------- Temp Dir: /tmp/tmp.OG2UHlGc8m Nix Root: /nix Build Users: 32 Build Group ID: 30000 Build Group Name: nixbld

build users: Username: UID nixbld1: 30001 nixbld2: 30002 nixbld3: 30003 nixbld4: 30004 nixbld5: 30005 nixbld6: 30006 nixbld7: 30007 nixbld8: 30008 nixbld9: 30009 nixbld10: 30010 nixbld11: 30011 nixbld12: 30012 nixbld13: 30013 nixbld14: 30014 nixbld15: 30015 nixbld16: 30016 nixbld17: 30017 nixbld18: 30018 nixbld19: 30019 nixbld20: 30020 nixbld21: 30021 nixbld22: 30022 nixbld23: 30023 nixbld24: 30024 nixbld25: 30025 nixbld26: 30026 nixbld27: 30027 nixbld28: 30028 nixbld29: 30029 nixbld30: 30030 nixbld31: 30031 nixbld32: 30032

Ready to continue? [y/n] y

~~> Setting up the build group nixbld

---- sudo execution ------------------------------------------------------------ I am executing:

$ sudo groupadd -g 30000 --system nixbld

Create the Nix build group, nixbld

sudo: The "no new privileges" flag is set, which prevents sudo from running as root. sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

---- oh no! -------------------------------------------------------------------- Oh no, something went wrong. If you can take all the output and open an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

You can open an issue at https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community ~/Alpaca-Arbitrage-Playbots-1$

dermetfan commented 1 year ago

Looks like this depends on your environment:

sudo: The "no new privileges" flag is set, which prevents sudo from running as root. sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

malteneuss commented 3 weeks ago

I had the same constraint "no new privilges" when running a sudo nix ... command from inside a vscode terminal. Running it outside of vscode was fine.