获取 Fuchsia 时 gnutls_handshake() 失败(TLS 连接未正确终止)?

wer*_*mos 6 git gnutls fuchsia

我试图获取 Google Fuchsia 源代码,但我不断遇到以下错误:

ERROR: 'git fetch -p origin' failed:
stdout:
stderr:
fatal: unable to access 'https://fuchsia.googlesource.com/third_party/github.com/google/cppdap/':
gnutls_handshake() failed: The TLS connection was non-properly terminated.
command fail error: exit status 128

Run Code Online (Sandbox Code Playgroud)

因此,下载永远不会完全完成,并且我有一个不完整的 Fuchsia 存储库克隆。

我知道我的 Git 安装没问题,因为我可以通过 https 访问 GitHub 存储库(我经常这样做)。

我使用的是 WSL2(Ubuntu 20.04 LTS)。

我该如何修复这个错误?

Zgp*_*ace 13

我在 Ubuntu 中禁用了 sslVerify。并尝试克隆 git。有用。

git config --global http.sslVerify false
Run Code Online (Sandbox Code Playgroud)


Ste*_*one 0

如果您仍然遇到此错误,首先我建议您从文档中验证当前的有效网址

curl -s "https://fuchsia.googlesource.com/fuchsia/+/HEAD/scripts/bootstrap?format=TEXT" | base64 --decode | bash
Run Code Online (Sandbox Code Playgroud)

然后尝试强制使用 ipv4--ipv4curl按照此答案中的描述进行更新

apt-get update
Run Code Online (Sandbox Code Playgroud)
apt-get install curl
Run Code Online (Sandbox Code Playgroud)