[GH-ISSUE #141] cargo install du-dust Updating crates.io index error: failed to fetch https://github.com/rust-lang/crates.io-index #61

Closed
opened 2026-06-08 11:25:31 +03:00 by zhus · 1 comment
Owner

Originally created by @monacv on GitHub (Mar 31, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/141

I got the following error trying to install dust in Ubuntu 18.04:

$ cargo install du-dust
    Updating crates.io index
error: failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to authenticate when downloading repository: ssh://git@github.com/rust-lang/crates.io-index

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  error authenticating: no auth sock variable; class=Ssh (23)

I have:

$ cargo -V
cargo 1.46.0
$ lsb_release -a
LSB Version:	core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic
Originally created by @monacv on GitHub (Mar 31, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/141 I got the following error trying to install dust in Ubuntu 18.04: ``` $ cargo install du-dust Updating crates.io index error: failed to fetch `https://github.com/rust-lang/crates.io-index` Caused by: failed to authenticate when downloading repository: ssh://git@github.com/rust-lang/crates.io-index * attempted ssh-agent authentication, but no usernames succeeded: `git` if the git CLI succeeds then `net.git-fetch-with-cli` may help here https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli Caused by: error authenticating: no auth sock variable; class=Ssh (23) ``` I have: ``` $ cargo -V cargo 1.46.0 $ lsb_release -a LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic ```
zhus closed this issue 2026-06-08 11:25:31 +03:00
Author
Owner

@monacv commented on GitHub (Mar 31, 2021):

You can ignore this since I was able to install it from the source.

<!-- gh-comment-id:810765720 --> @monacv commented on GitHub (Mar 31, 2021): You can ignore this since I was able to install it from the source.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#61