NixOS / nix

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

ask for passport, but i can not type anything, like my keyboard suddently was locked. what should i do? please help! #6226

Open Junfromc opened 2 years ago

Junfromc commented 2 years ago

qwerdeMacBook-Pro:test qwer$ # user must be in sudoers qwerdeMacBook-Pro:test qwer$ curl -L https://nixos.org/nix/install | sh

Run this or login again to use Nix

. "$HOME/.nix-profile/etc/profile.d/nix.sh" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0 100 4046 100 4046 0 0 179 0 0:00:22 0:00:22 --:--:-- 39281 downloading Nix 2.7.0 binary tarball for x86_64-darwin from 'https://releases.nixos.org/nix/nix-2.7.0/nix-2.7.0-x86_64-darwin.tar.xz' to '/var/folders/ml/c921yhls2wb536y9pwf6_pjh0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.KhyWQPOG'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 23.2M 100 23.2M 0 0 184k 0 0:02:09 0:02:09 --:--:-- 260k 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? No TTY, assuming you would say yes :)

I will:

Ready to continue? No TTY, assuming you would say yes :)

---- let's talk about sudo ----------------------------------------------------- This script is going to call sudo a lot. Normally, it would show you exactly what commands it is running and why. However, the script is run in a headless fashion, like this:

$ curl -L https://nixos.org/nix/install | sh

or maybe in a CI pipeline. Because of that, I'm going to skip the verbose output in the interest of brevity.

If you would like to see the output, try like this:

$ curl -L -o install-nix https://nixos.org/nix/install $ sh ./install-nix

~~> Fixing any leftover Nix volume state Before I try to install, I'll check for any existing Nix volume config and ask for your permission to remove it (so that the installer can start fresh). I'll also ask for permission to fix any issues I spot.

~~> 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.

---- Nix config report --------------------------------------------------------- Temp Dir: /var/folders/ml/c921yhls2wb536y9pwf6_pjh0000gn/T/tmp.0qnUQQQ0Gw Nix Root: /nix Build Users: 32 Build Group ID: 30000 Build Group Name: nixbld

build users: Username: UID _nixbld1: 301 _nixbld2: 302 _nixbld3: 303 _nixbld4: 304 _nixbld5: 305 _nixbld6: 306 _nixbld7: 307 _nixbld8: 308 _nixbld9: 309 _nixbld10: 310 _nixbld11: 311 _nixbld12: 312 _nixbld13: 313 _nixbld14: 314 _nixbld15: 315 _nixbld16: 316 _nixbld17: 317 _nixbld18: 318 _nixbld19: 319 _nixbld20: 320 _nixbld21: 321 _nixbld22: 322 _nixbld23: 323 _nixbld24: 324 _nixbld25: 325 _nixbld26: 326 _nixbld27: 327 _nixbld28: 328 _nixbld29: 329 _nixbld30: 330 _nixbld31: 331 _nixbld32: 332

Ready to continue? No TTY, assuming you would say yes :)

---- Preparing a Nix volume ---------------------------------------------------- Nix traditionally stores its data in the root directory /nix, but macOS now (starting in 10.15 Catalina) has a read-only root directory. To support Nix, I will create a volume and configure macOS to mount it at /nix.

~~> Configuring /etc/synthetic.conf to make a mount-point at /nix Password: Sorry, try again. Password: g/nix/install | sh

Run this or login again to use Nix

. "$HOME/.nix-profile/etc/profile.d/nix.sh"Sorry, try again. Password:


ask for passport, but i can not type anything, like my keyboard suddently was locked. what should do? please help!

abathur commented 2 years ago

I assume you're following instructions from https://github.com/dapphub/dapptools#installation, but you can't just copy/paste all of it at once. You just need to run the two commands, one at a time. The sudo password prompt isn't working normally because it's getting input from the other lines you've pasted.