After installing rustup it says "No default toolchain configured": what to do?
Hello, colleagues! I'm new to Rust and trying to set up the environment. I installed rustup on Ubuntu using the command:
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
After installation, I restarted the terminal and checked the version:
```bash
rustc --version
```
And got the error:
```
error: no default toolchain configured; run `rustup default stable`
```
I tried running `rustup default stable`, but I get:
```
error: no default toolchain configured
```
Here is the output of `rustup show`:
```
Default host: x86_64-unknown-linux-gnu
rustup home: /home/user/.rustup
installed toolchains
--------------------
active toolchain
----------------
```
Empty! Nothing is installed. I already checked the paths in `~/.bashrc` — there is `source $HOME/.cargo/env`.
No answers yet.
Log in to leave an answer
Blogs
Go from Scratch in 2025: A Practical Guide for Beginners
Calculating Age by Date of Birth in C#: Best Practices 2025
Rust on Windows: Kill the linker 'cc' not found error in 5 minutes
Why mysql_* Functions in PHP Are Evil: A Complete Breakdown with Examples