小编pro*_*gor的帖子

Debian 10 backports 上的 git 抛出致命错误:无法访问“https://github.com/user/repo.git”:发送 HTTP2 数据失败

截至昨天,在更新我的 Debian 10+bpo 系统后,每当我尝试git clone,git fetch或任何其他依赖网络的 git 操作时,我都会得到fatal: unable to access 'https://domain.example/repo.git': Failed sending HTTP2 datafatal: unable to access 'https://domain.example/repo.git': Failed sending HTTP request,具体取决于 git 服务器是否支持 HTTP2。有趣的是,如果我使用git://或 ssh 方案而不是https://,命令会成功,可能是因为curl没有使用。我尝试禁用 SSL 验证,git config --global http.sslVerify false但无济于事。我也尝试重新安装libcurl, libgnutls, libnettle, 和libhogweed,但这也无济于事。从降级的git1:2.29.2-1~bpo10+11:2.20.1-2+deb10u3也没有工作,我与降级库没有打破我的系统中挣扎。

GIT_CURL_VERBOSE=1 GIT_TRACE2=1 git clone https://github.com/imageworks/pystring.git/(对于 HTTP2)的输出:

14:48:42.804049 common-main.c:48                  version 2.29.2
14:48:42.804073 common-main.c:49                  start git clone …
Run Code Online (Sandbox Code Playgroud)

git https curl debian-buster

8
推荐指数
1
解决办法
2690
查看次数

标签 统计

curl ×1

debian-buster ×1

git ×1

https ×1