cargo: Unable to update registry `crates-io`
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
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 5
- Comments: 19 (4 by maintainers)
Commits related to this issue
- 1. add .gitignore 2. remove Cargo.lock 3. example-config.yml: - fix hosts of clusters - fix show_progress_interval_secs of cl_2_client_1 4. Dockerfile: - set ENV CARGO_NET_GIT_FETCH_WIT... — committed to savinov/kafka-replicator by savinov 2 years ago
- 1. add .gitignore 2. example-config.yml: - fix hosts of clusters - fix show_progress_interval_secs of cl_2_client_1 3. Dockerfile: - set ENV CARGO_NET_GIT_FETCH_WITH_CLI=true env var ... — committed to savinov/kafka-replicator by savinov 2 years ago
- fix from https://github.com/rust-lang/cargo/issues/10230 — committed to gpongelli/test-action by gpongelli a year ago
- Radarr sonarr api v3 - Fix merge conflicts with develop (#3775) * Update docker/build-push-action action to v4 * Update irc to download tracker config correctly (#3678) [fix] irc: Update irc to... — committed to Flexget/Flexget by patrickegli a year ago
- Update Sonarr/Radarr to use v3 api (#3051) * [fix] imdb_lookup: updated the scraper for the newish html structure * fix some tests * cassettes * ... * move to https as imdb now redirects ... — committed to Flexget/Flexget by stevezau a year ago
Non of above works for me, remove the cache solved my problem
ah ok, my bad. log trace is attached. It seems to work with
CARGO_NET_GIT_FETCH_WITH_CLI=truelog_trace.txt .I have the same issue on PowerPC Debian with a brand new install.
CARGO_NET_GIT_FETCH_WITH_CLI=trueseemed to fix things for me as well.