[Bug 2139436] Re: cargo fetch fails with "invalid version 0 on git_proxy_options" error

Richard Scott McNew 2139436 at bugs.launchpad.net
Fri Jan 30 20:08:21 UTC 2026


The bug also happens for rust-1.89 on Jammy:


ubuntu at jammy1:~/experiment$ which rustc
/lib/rust-1.89/bin/rustc
ubuntu at jammy1:~/experiment$ cargo fetch
    Updating git repository `https://github.com/rust-random/rand.git`
error: failed to get `rand` as a dependency of package `experiment v0.1.0 (/home/ubuntu/experiment)`

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

Caused by:
  Unable to update https://github.com/rust-random/rand.git?tag=0.8.5

Caused by:
  failed to fetch into: /home/ubuntu/.cargo/git/db/rand-fe0ee6bed158a0f1

Caused by:
  invalid version 0 on git_proxy_options; class=Invalid (3)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rustc-1.85 in Ubuntu.
https://bugs.launchpad.net/bugs/2139436

Title:
  cargo fetch fails with "invalid version 0 on git_proxy_options" error

Status in rustc-1.85 package in Ubuntu:
  Confirmed

Bug description:
  Hello!

  I actually tried rustc-1.85, 1.89, 1.84, 1.83, and all of them fail.
  Looks like only 1.82 version (cargo-1.82) works and < 1.82 including
  default 1.75.

  Checked both Ubuntu 22.04 and 24.04. Both are the same.

  The problem happens when git-ssh dependencies are used. Looks like
  this may be related to incompatibility of cargo and libgit versions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc-1.85/+bug/2139436/+subscriptions




More information about the foundations-bugs mailing list