NixOS / nix

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

Generation 1 has no cacert #3050

Open Akeboshiwind opened 4 years ago

Akeboshiwind commented 4 years ago

For context, this is all a fresh install on MacOS.

I was tinkering with nix and did the following:

sh <(curl https://nixos.org/nix/install) # fresh install
nix-env --switch-generation 1
nix-collect-garbage -d # this just made my problem permanent 🤦‍♂
nix-env -i hello

And got an error like:

unable to download 'https://cache.nixos.org/nar/1akh3jas3ydbcm9q8xh6d44ydrd3i2g4nargnxl8gybl7blch4k8.nar.xz': Problem with the SSL CA cert (path? access rights?) (77)

After some looking around it seems like generation 1 doesn't have the cacert installed, so if you switch back to it then you can't download any packages from the cache.

Additionally, if you decide to try out collecting garbage after you've done that then all you can do is freshly install nix 🤦‍♂.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I closed this issue due to inactivity. → More info