简体   繁体   English

git clone:致命:gnutls_handshake()失败了

[英]git clone: fatal: gnutls_handshake() failed

recently, trying to clone a git repo from my debian(jessie) box, i'm facing this: 最近,我试图从我的debian(jessie)盒子里克隆一个git repo,我面对的是:

fatal: unable to access 'https://github.com/foo/bar/': gnutls_handshake() failed: A TLS packet with unexpected length was received.

as mentioned by ubuntu folks i used the git compiled with openssl, and now i get: 正如ubuntu人提到的,我使用了用openssl编译的git,现在我得到:

fatal: unable to access 'https://github.com/foo/bar/': Unknown SSL protocol error in connection to github.com:443

The client side solutions work great. 客户端解决方案运行良好。

However, it's not always practical to ask everyone to recompile their base git executable when we could just fix things on the server and be done with it. 但是,当我们可以在服务器上修复并完成它时,要求每个人重新编译他们的基本git可执行文件并不总是切实可行。

(NOTE: This only works if you have admin access to your git server.) (注意:这仅在您具有git服务器的管理员权限时才有效。)

Edit: 编辑:

/etc/apache2/sites-enabled/config-file-whatever-it-is.conf /etc/apache2/sites-enabled/config-file-whatever-it-is.conf

And add ServerName my.sampleserver.com 并添加ServerName my.sampleserver.com

ServerName reference: ServerName参考:

https://httpd.apache.org/docs/current/vhosts/name-based.html https://httpd.apache.org/docs/current/vhosts/name-based.html

Special thanks to for the solution: 特别感谢解决方案:

https://www.progclub.org/blog/2014/09/03/gnutls_handshake-failed-using-git/ https://www.progclub.org/blog/2014/09/03/gnutls_handshake-failed-using-git/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 gnutls_handshake() 失败:GIT 握手失败 - gnutls_handshake() failed: Handshake failed GIT git错误:gnutls_handshake()在推送时失败 - git error: gnutls_handshake() failed on push 错误:gnutls_handshake()GIT存储库失败 - error: gnutls_handshake() failed GIT repository git失败,并显示“ gnutls_handshake()失败” - git fails with “gnutls_handshake() failed” 致命:无法访问“......”:gnutls_handshake()失败:握手失败 - fatal: unable to access ".....": gnutls_handshake() failed: Handshake failed Ubuntu git:致命:无法访问 gnutls_handshake() 失败:已收到 TLS 致命警报 - Ubuntu git: fatal: unable to access gnutls_handshake() failed: A TLS fatal alert has been received git clone 错误:gnutls_handshake() 失败:收到了意外的 TLS 数据包 - git clone error: gnutls_handshake() failed: An unexpected TLS packet was received Git 问题:gnutls_handshake() 失败:收到了意外的 TLS 数据包 - Git Problem: gnutls_handshake() failed: An unexpected TLS packet was received Git: gnutls_handshake() failed: 拉函数出错 - Git: gnutls_handshake() failed: Error in the pull function Git,致命:无法访问“https://github.com/path/to/repo.git”:gnutls_handshake() 失败:pull 函数出错 - Git, fatal: unable to access 'https://github.com/path/to/repo.git': gnutls_handshake() failed: Error in the pull function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM