I recently got a new computer running ubuntu, and I installed rust using:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
as instructed I closed the terminal, and logged back in, so that rustup command would be in my path.
I then changed switched to rust nightly using
rustup default nightly
All seemed to be working, but I noticed that trying to use rustup in sudo doesn't seem to work.
When I type the command : sudo rustup *any subcommand* , I just get the response "sudo: rustup: command not found"
How can I fix this?