I get an error when I try to install Rust.

I get an error when I try to install Rust. The contents are as follows
sh: 466: /tmp/tmp.E8xERA1YV7/rustup-init: not found

What OS are you on?