Skip to content

rustup default stable command ends with "killed" after installing rustc #4268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
Modicrumb opened this issue Mar 26, 2025 · 2 comments
Open
2 tasks done
Labels

Comments

@Modicrumb
Copy link

Verification

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

  1. Installed rustup using the standard curl script: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Selected option 1 (default installation)
  3. Ran source "$HOME/.cargo/env" to configure the environment
  4. 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 (cargo and rustc commands 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
@Modicrumb Modicrumb added the bug label Mar 26, 2025
@Modicrumb
Copy link
Author

Sorry I am pretty sure this happened because I didn't set up any swap space and my process was running out of memory. I'll test again soon to confirm and probably just close this ticket.

@rami3l
Copy link
Member

rami3l commented Mar 28, 2025

@Modicrumb Thanks for your investigation! Probably a duplicate of #3125 then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants