Skip to content
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

error: "/home/xiaguangbo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/Cargo.lock" does not exist #14371

Closed
xiaguangbo opened this issue Aug 8, 2024 · 1 comment
Labels
C-bug Category: bug S-triage Status: This issue is waiting on initial triage.

Comments

@xiaguangbo
Copy link

Problem

$ cargo build
error: "/home/xiaguangbo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
        rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu

delete Cargo.lock target/ at my project, do rustup update, rebuild, report this err.
reinstall rust not solution

Steps

No response

Possible Solution(s)

at ...rustlib/src/rust/, do nano Cargo.lock, rebuild is ok

Notes

No response

Version

No response

@xiaguangbo xiaguangbo added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Aug 8, 2024
@weihanglo
Copy link
Member

Close as duplicate of rust-lang/rust#128808

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants