My (K)VM is using Ubuntu 22.04, which is not even the latest Ubuntu version.
So first I had to delete cargo
which was installed through apt
:
sudo apt remove cargo
sudo apt autoremove
Then, I searched a little bit and discovered the default tool to install rust-related tooling (including cargo
) is rustup
.
So, I installed it:
sudo snap install rustup --classic
rustup default stable # this bootstraps the rust tooling (cargo, rustc, etc...)
To validate it was installed and working, I ran:
rustc --version
cargo --version
Then, I was able to install television:
cargo install television