rust-lang / rust-lang/rustup

Rustup not installed at [location] with different CARGO_HOME and RUSTUP_HOME

Open
#4,892 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

incomplete question
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Verification
Problem

Running rustup update does update the version but ends with error: rustup is not installed at [location of $RUSTUP_HOME].

I did check the RUSTUP_HOME and CARGO_HOME. They are set as follows:

  • $RUSTUP_HOME: custom/location/rustup/bin
  • $CARGO_HOME: custom/location/cargo/bin

Both are sitting at the same custom/location just with different suffices.

I did check the actual location and the error message is correct. The rustup binary itself is installed at $CARGO_HOME/rustup together with all the other binaries such as cargo, rust-analyzer and more.

In the $RUSTUP_HOME are the installed toolchains, but no binaries.

Steps
  1. Install rustup via rust installer (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh)
  2. run rustup update
  3. Rustup update works but ends with error
Possible Solution(s)

No response

Notes

No response

Rustup version
rustup 1.29.0 (28d1352db 2026-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: the currently active `rustc` version is `rustc 1.96.0 (ac68faa20 2026-05-25)`
Installed toolchains
Default host: aarch64-apple-darwin
rustup home:  [redacted]

installed toolchains
--------------------
stable-aarch64-apple-darwin (active, default)

active toolchain
----------------
name: stable-aarch64-apple-darwin
active because: it's the default toolchain
installed targets:
  aarch64-apple-darwin
OS version
macOS 26.5.1 on Apple Silicon Chip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with different RUSTUP_HOME and CARGO_HOME values, using the documented rustup installer and rustup update steps. Trace how the update command determines the rustup installation location, then verify that an update completes without the incorrect installation-location error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.