Skip to content

Unable to update registry crates-io #10230

Open
@werdahias

Description

Problem

OS: Debian testing
Rustc version: rustc 1.59.0-nightly
cargo version: cargo 1.59.0-nightly

I am not able to build any rust project with cargo. It doesn't matter whether I have cargo/rustc installed by rustup or via apt. Switching from stable to nightly didn't resovel the issue either. All attemps at building throw the following error:


$ cargo build
    Updating crates.io index
error: failed to get `bytes` as a dependency of package `onenote_parser v0.3.0 (/home/user/onenote.rs)`

Caused by:
  failed to load source for dependency `bytes`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  an unknown git error occurred; code=NotFound (-3)

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions