Nix-shell tries to download tarballs which do not exist

Whenever I run nix-shell, it prints out all the derivations that it needs to install, but when it gets to building the first derivation, it fails saying that it cannot resolve the hostname.

  ...
  /nix/store/7l8dzjnvb5rv1gjnkkqz6q71skyqr6f1-bash-interactive-4.4-p23.drv
building '/nix/store/qbr6qqs9gi96r5dpamalb76725zyyvj3-bootstrap-tools.cpio.bz2.drv'...
warning: unable to download 'http://tarballs.nixos.org/sha256/4e321a7bf05f382437dee9f10d727affe25244466690ab0e180f653a0d2f17a2': Couldn't resolve host name (6); retrying in 256 ms
warning: unable to download 'http://tarballs.nixos.org/sha256/4e321a7bf05f382437dee9f10d727affe25244466690ab0e180f653a0d2f17a2': Couldn't resolve host name (6); retrying in 614 ms
warning: unable to download 'http://tarballs.nixos.org/sha256/4e321a7bf05f382437dee9f10d727affe25244466690ab0e180f653a0d2f17a2': Couldn't resolve host name (6); retrying in 1309 ms
warning: unable to download 'http://tarballs.nixos.org/sha256/4e321a7bf05f382437dee9f10d727affe25244466690ab0e180f653a0d2f17a2': Couldn't resolve host name (6); retrying in 2229 ms
warning: unable to download 'http://tarballs.nixos.org/stdenv-darwin/x86_64/d5bdfcbfe6346761a332918a267e82799ec954d2/bootstrap-tools.cpio.bz2': Couldn't resolve host name (6); retrying in 328 ms
warning: unable to download 'http://tarballs.nixos.org/stdenv-darwin/x86_64/d5bdfcbfe6346761a332918a267e82799ec954d2/bootstrap-tools.cpio.bz2': Couldn't resolve host name (6); retrying in 652 ms
warning: unable to download 'http://tarballs.nixos.org/stdenv-darwin/x86_64/d5bdfcbfe6346761a332918a267e82799ec954d2/bootstrap-tools.cpio.bz2': Couldn't resolve host name (6); retrying in 1355 ms
warning: unable to download 'http://tarballs.nixos.org/stdenv-darwin/x86_64/d5bdfcbfe6346761a332918a267e82799ec954d2/bootstrap-tools.cpio.bz2': Couldn't resolve host name (6); retrying in 2427 ms
error: unable to download 'http://tarballs.nixos.org/stdenv-darwin/x86_64/d5bdfcbfe6346761a332918a267e82799ec954d2/bootstrap-tools.cpio.bz2': Couldn't resolve host name (6)
builder for '/nix/store/qbr6qqs9gi96r5dpamalb76725zyyvj3-bootstrap-tools.cpio.bz2.drv' failed with exit code 1
...

I navigated to the url for the sha256 derivation and it does not exist.

But the other one does exist, and my browser asks if i’d like to download it.

what’s going on here?

I navigated to the hostname in my browser and indeed, the package does not exist

solution: nix-shell --option binary-caches 'https://cache.nixos.org/'

1 Like