截至昨天,在更新我的 Debian 10+bpo 系统后,每当我尝试git clone,git fetch或任何其他依赖网络的 git 操作时,我都会得到fatal: unable to access 'https://domain.example/repo.git': Failed sending HTTP2 data或fatal: 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+1到1: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)