【发布时间】:2016-05-05 10:14:05
【问题描述】:
我尝试在 ubuntu 16.04 上通过 git clone https://github.com/git/git.git 克隆 github 上的 git 存储库,
但它因致命的 GnuTLS 错误而失败。
带有详细日志,
$ GIT_CURL_VERBOSE=1 git clone https://github.com/git/git
Cloning into 'git'...
* Couldn't find host github.com in the .netrc file; using defaults
* Trying 192.30.252.123...
* Connected to github.com (192.30.252.123) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 697 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: github.com (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject:
* start date: Thu, 10 Mar 2016 00:00:00 GMT
* expire date: Thu, 17 May 2018 12:00:00 GMT
* issuer: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert SHA2 Extended Validation Server CA
* compression: NULL
* ALPN, server accepted to use http/1.1
> GET /git/git/info/refs?service=git-upload-pack HTTP/1.1
Host: github.com
User-Agent: git/2.8.2
Accept: */*
Accept-Encoding: gzip
Accept-Language: en-US, *;q=0.9
Pragma: no-cache
* GnuTLS recv error (-54): Error in the pull function.
* Closing connection 0
fatal: unable to access 'https://github.com/git/git/': GnuTLS recv error (-54): Error in the pull function.
我找到了一些关于GnuTLS recv error (-9) 的报告,但我找不到关于(-54) 的信息。
另一方面,我通过像git clone git@github.com:iTakeshi/...这样的SSH协议成功克隆了我的私有仓库
我确认 git、curl 和 GnuTLS 库已更新到最新版本。
这有什么问题?
【问题讨论】:
标签: git