rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
53.83k stars 10.13k forks source link

Rustlings couldn't install #2067

Closed muthanii closed 2 months ago

muthanii commented 2 months ago

I have a WSL launched on Microsoft Terminal running Ubuntu distro. I have installed gcc, rustup and cargo from apt, snap and apt respectively. I have tried to use the --locked flag. I also restarted my terminal and it still doesn't work and the following error is thrown everytime I run cargo install rustlings --locked. Would love to get started with rustlings ASAP.

image

mo8it commented 2 months ago

The repositories have an old version. Rustlings requires the latest Rust version. Please uninstall cargo, rustc and rustup that you installed with apt and install Rust using the official method:

https://www.rust-lang.org/tools/install