代码之家  ›  专栏  ›  技术社区  ›  Thảo M. Hoàng

gnutls\u handshake()失败:pull函数出错

git
  •  0
  • Thảo M. Hoàng  · 技术社区  · 6 年前

    我用的时候出错了

    fatal: unable to access 'https://github.com/path/to/repo.git/': gnutls_handshake() failed: Error in the pull function.
    

    我在网上尝试了很多方法,但都没用。同时,尝试处理我的网络中的代理。

    注意:有一些解决方案 https://devopscube.com/gnutls-handshake-failed-aws-codecommit/ https://askubuntu.com/questions/186847/error-gnutls-handshake-failed-when-connecting-to-https-servers

    2 回复  |  直到 4 年前
        1
  •  11
  •   Cristian Sepulveda    6 年前

    我的服务器在一个代理后面,我得到了相同的错误,我解决了这个问题,修改~/.gitconfig添加代理conf:

    [http]
        proxy = http://xxx.xxx.xxx.xxx:pppp
    
        2
  •  13
  •   hardik chugh    6 年前

    我通过以下方法解决了这个问题-

     apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev
    
        3
  •  5
  •   Isaac    5 年前

    我在Windows-WSL2/Ubuntu中使用git时收到了同样的错误

    在我的情况下,它解决了当我放弃我的公司VPN连接,并恢复使用git成功和立即。

    为了验证这是因果关系,而不是相关性,我重新连接到VPN,然后再试一次,它又坏了;然后第二次放弃VPN-瞧,它工作了

    希望这能帮助别人!

        4
  •  0
  •   isunjn    4 年前

    我通过将git更新到最新版本来解决此问题:

    sudo add-apt-repository ppa:git-core/ppa
    sudo apt-get update
    sudo apt-get install git
    
        5
  •  0
  •   Kaumadie Kariyawasam    4 年前

    我在克隆git项目时遇到了这个错误。 克隆url端口(&A);项目中浏览器显示的url端口显示不同的url端口。 因此,我使用浏览器显示的url端口来克隆项目&我可以成功地克隆项目