rustup default stable command ends with "killed" after installing rustc
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Rustup Bug Report Summary
Issue Description
When attempting to set the default Rust toolchain using rustup default stable, the process fails with the error message "killed". This occurs on a fresh Ubuntu 22.04.5 LTS installation on AWS Lightsail.
Error Message
rustup default stable
info: using existing install for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2025-03-18, rust version 1.85.1 (4eb161250 2025-03-15)
info: downloading component 'rustc'
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rust-docs'
info: downloading component 'rustfmt'
info: downloading component 'clippy'
info: removing previous version of component 'rustc'
warn: during uninstall component rustc was not found
info: removing previous version of component 'cargo'
warn: during uninstall component cargo was not found
info: removing previous version of component 'rust-std'
warn: during uninstall component rust-std was not found
info: removing previous version of component 'rust-docs'
warn: during uninstall component rust-docs was not found
info: removing previous version of component 'rustfmt'
warn: during uninstall component rustfmt was not found
info: removing previous version of component 'clippy'
warn: during uninstall component clippy was not found
info: installing component 'rustc'
Killed
Steps
Steps to Reproduce
- Installed rustup using the standard curl script:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Selected option 1 (default installation)
- Ran
source "$HOME/.cargo/env"to configure the environment - Attempted to set default toolchain with
rustup default stable
Possible Solution(s)
No response
Notes
- The installation appears to download components but fails during configuration
- No Rust executables are functional after installation (
cargoandrustccommands fail)
...
error: Missing manifest in toolchain 'stable-x86_64-unknown-linux-gnu'```
- The error persists across multiple installation attempts and system reboots
- The system had a previous apt-installed version of Rust that was removed before installing rustup
### Rustup version
```console
rustup --version
rustup 1.28.1 (f9edccde0 2025-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `(error reading rustc version)`
Installed toolchains
rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/ubuntu/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (active, default)
active toolchain
----------------
name: stable-x86_64-unknown-linux-gnu
active because: it's the default toolchain
installed targets:
OS version
## System Information
- OS: Ubuntu 22.04.5 LTS
- Architecture: x86_64
- Kernel: Linux 6.8.0-1024-aws
- Environment: AWS Lightsail instance
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing rustup default stable on the reported Ubuntu 22.04.5 AWS Lightsail environment and review the installation log, especially the Killed result while installing rustc. Compare the behavior with the reported rustup version and installed toolchains; done means the default stable toolchain installs successfully and cargo and rustc work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, linux, rust, ubuntu
- Domain
- cloud, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100