[Bug 2139436] Re: cargo fetch fails with "invalid version 0 on git_proxy_options" error
Brent Kerby
2139436 at bugs.launchpad.net
Mon Feb 2 17:34:24 UTC 2026
I created an autopkgtest to ensure this bug does not occur in future
releases or backports:
https://code.launchpad.net/~blkerby/ubuntu/+source/rustc/+git/rustc/+merge/499670.
The issue indeed appears to be an incompatibility between the system
libgit2 version and cargo. The solution will likely be to build the
toolchain using the vendored version of libgit2 rather than relying on
the system version.
--
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
Status in rustc-1.89 package in Ubuntu:
New
Status in rustc-1.85 source package in Jammy:
New
Status in rustc-1.89 source package in Jammy:
New
Status in rustc-1.85 source package in Noble:
New
Status in rustc-1.89 source package in Noble:
New
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