致命:无法访问‘https://github.com/gitaccount/repo-name.git/’:操作在 300017 毫秒后超时,收到 0 个字节中的 0 个

致命:无法访问‘https://github.com/gitaccount/repo-name.git/’:操作在 300017 毫秒后超时,收到 0 个字节中的 0 个

我无法从 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"

答案1

我尝试在另一个 Ubuntu 上使用 git clone“20.04.1 LTS”live boot,问题也存在。显然这是“20.04.1 LTS”版本的问题。

现在我正在使用“Ubuntu18.04 立方英尺“,一切都很好,生活很美好,充满阳光......我走出了抑郁,重新回归生活。

相关内容