Hello Nix community!
Ubuntu 22.04.4 LTS
on VPS w/ CloudPanel.
Installing Nix as sudoer (running with normal privileges):
sh <(curl -L https://nixos.org/nix/install) --daemon
Error at:
---- sudo execution --------------------------------
I am executing:
$ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix
to back up your current /etc/bashrc to /etc/bashrc.backup-before-nix
cp: -r not specified; omitting directory '/etc/bashrc'
---- oh no! ----------------------------------------
Oh no, something went wrong . .
Resolved by:
sudo mv /etc/bashrc /etc/bashrc.d
sudo cp /etc/bashrc.d/bashrc /etc/bashrc
Good luck!