Skip to content
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

macOS stuck in --update nixpkgs #11568

Open
lknt opened this issue Sep 23, 2024 · 1 comment
Open

macOS stuck in --update nixpkgs #11568

lknt opened this issue Sep 23, 2024 · 1 comment

Comments

@lknt
Copy link

lknt commented Sep 23, 2024

Platform

macOS

Additional information

It keeps getting stuck at sudo HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/7mb1mcpmjphg5bgc8m7m0gxrsshrzsk7-nix-2.24.7/bin/nix-channel --update nixpkgs. but I can download https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.xz using my browser.

Output

Output

<!-- paste console output here and remove this comment -->

    $ sudo HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/7mb1mcpmjphg5bgc8m7m0gxrsshrzsk7-nix-2.24.7/bin/nix-channel --update nixpkgs

to update the default channel in the default profile

warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.xz': HTTP error 200 (curl error: Timeout was reached); retrying in 255 ms
warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.xz': HTTP error 200 (curl error: Timeout was reached); retrying in 521 ms
warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.xz': Timeout was reached (28); retrying in 1250 ms
warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.xz': Timeout was reached (28); retrying in 2346 ms
warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.bz2': Timeout was reached (28); retrying in 279 ms
warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.bz2': Timeout was reached (28); retrying in 645 ms
warning: error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.bz2': Timeout was reached (28); retrying in 1214 ms
error: unable to download 'https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.bz2': HTTP error 404

       response body:

       404

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

    $ sudo install -m 0664 /var/folders/k9/_swm223n56xd875xlt34z3rm0000gn/T/tmp.8o8xFcwnFd/nix.conf /etc/nix/nix.conf

to place the default nix daemon configuration (part 2)

Password:
Sorry, try again.
Password:

~~> Setting up the nix-daemon LaunchDaemon

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

    $ sudo /usr/bin/install -m u=rw,go=r /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist

to set up the nix-daemon as a LaunchDaemon


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

    $ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist

to load the LaunchDaemon plist for nix-daemon

Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.

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

    $ sudo launchctl kickstart -k system/org.nixos.nix-daemon

to start the nix-daemon

Alright! We're done!
Try it! Open a new terminal, and type:

  $ nix-shell -p nix-info --run "nix-info -m"

Thank you for using this installer. If you have any feedback or need
help, don't hesitate:

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

---- Reminders -----------------------------------------------------------------
[ 1 ]
Nix won't work in active shell sessions until you restart them.

[ 2 ]
I had trouble fetching the nixpkgs channel (are you offline?)
To try again later, run: sudo -i nix-channel --update nixpkgs

wurongfei@localhost backup % 
wurongfei@localhost backup % sudo -i nix-channel --update nixpkgs
-sh: nix-channel: command not found

Priorities

Add 👍 to issues you find important.

@lknt lknt added the installer label Sep 23, 2024
@abathur
Copy link
Member

abathur commented Sep 23, 2024

It looks like there's a known issue here, and there was a candidate fix merged--but it caused its own problems, needed to be reverted, and that a fresh attempt to re-fix hasn't moved:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants