Nix: Installation not working on Ubuntu 20.10

Created on 8 Jan 2021  路  4Comments  路  Source: NixOS/nix

$ sh <(curl -L https://nixos.org/nix/install) --daemo
...
Alright! We're done!

Before Nix will work in your existing shells, you'll need to close
them and open them again. Other than that, you should be ready to go.

Try it! Open a new terminal, and type:

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

And then in a new terminal window I get:

$ nix-shell -p nix-info --run "nix-info -m"
Command 'nix-shell' not found, but can be installed with:
sudo apt install nix-bin

Edit: I see there are people reporting problems when the installation runs under the fish shell. So for what it's worth: I started the installation from bash which was started from the fish shell.

Edit2: Restarting the computer helped :(

bug

Most helpful comment

Then there should a sentence like "When on Ubuntu then install as any other package". Or something like that.

All 4 comments

Not a direct answer to your question, but 20.10 now ships with Nix in the apt package repository:
https://packages.ubuntu.com/groovy/nix-bin

sudo apt install nix

should be enough to install it!

We should really put this in the docs

We should really put this in the docs

Oh yeah. Like, changing the docs and referring here in the discussion to the commit containing this change would go a greater length, than just writing me a few words here. Anyway, thank you.

No, we shouldn't put that in the docs since we have no control over the Ubuntu packages.

Then there should a sentence like "When on Ubuntu then install as any other package". Or something like that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vaibhavsagar picture vaibhavsagar  路  3Comments

bryanhuntesl picture bryanhuntesl  路  3Comments

dasJ picture dasJ  路  3Comments

bflyblue picture bflyblue  路  3Comments

Infinisil picture Infinisil  路  3Comments