我无法从 github.com 执行 git clone Ubuntu 20.04.1 LTS
,尝试了其他答案的所有解决方案。禁用了ubuntu防火墙,并且在家庭网络上,所以没有其他防火墙。在windows上一切都很好。
我没有使用任何代理服务器。
ramez@ramez-nx:~/lab$ sudo ufw status
Status: inactive
设置 SSL 验证 = false
ramez@ramez-nx:~/lab$ git config --global https.sslVerify false
我不知道还能尝试什么,真的卡了好几天。
ramez@ramez-nx:~/lab$ set -x; GIT_TRACE=2 GIT_CURL_VERBOSE=2 GIT_TRACE_PERFORMANCE=2 GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PACKET=2 GIT_TRACE_PACKFILE=2 GIT_TRACE_SETUP=2 GIT_TRACE_SHALLOW=2 git clone https://github.com/sqlectron/sqlectron-core.git -v -v; set +x –
+ GIT_TRACE=2
+ GIT_CURL_VERBOSE=2
+ GIT_TRACE_PERFORMANCE=2
+ GIT_TRACE_PACK_ACCESS=2
+ GIT_TRACE_PACKET=2
+ GIT_TRACE_PACKFILE=2
+ GIT_TRACE_SETUP=2
+ GIT_TRACE_SHALLOW=2
+ git clone https://github.com/sqlectron/sqlectron-core.git -v -v
10:03:38.851319 git.c:444 trace: built-in: git clone https://github.com/sqlectron/sqlectron-core.git -v -v
Cloning into 'sqlectron-core'...
10:03:38.856462 run-command.c:663 trace: run_command: git-remote-https origin https://github.com/sqlectron/sqlectron-core.git
10:03:38.863159 http.c:756 == Info: Couldn't find host github.com in the .netrc file; using defaults
10:03:48.877543 http.c:756 == Info: Trying 140.82.118.3:443...
10:03:48.877579 http.c:756 == Info: TCP_NODELAY set
10:03:49.004993 http.c:756 == Info: Connected to github.com (140.82.118.3) port 443 (#0)
10:03:49.029753 http.c:756 == Info: found 383 certificates in /etc/ssl/certs
10:03:49.029809 http.c:756 == Info: ALPN, offering h2
10:03:49.029814 http.c:756 == Info: ALPN, offering http/1.1
10:08:13.018780 http.c:756 == Info: gnutls_handshake() failed: Error in the pull function.
10:08:13.018844 http.c:756 == Info: Closing connection 0
fatal: unable to access 'https://github.com/sqlectron/sqlectron-core.git/': gnutls_handshake() failed: Error in the pull function.
10:08:13.028404 trace.c:487 performance: 274.177112071 s: git command: git clone https://github.com/sqlectron/sqlectron-core.git -v -v
+ set +x –
ramez@ramez-nx:~/lab$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"