git經過https訪問倉庫遇到error: gnutls_handshake() failed問題

 fatal: unable to access 'https://github.com/espressif/esp-idf.git/': gnutls_handshake() failed: A TLS packet with unexpected length was received.




未知足的構建依賴關係: libcurl4-openssl-dev
需再次安裝 sudo apt-get libcurl4-openssl-devsudo apt-get update sudo apt-get install build-essential fakeroot dpkg-dev libcurl4-openssl-dev sudo apt-get build-dep git mkdir ~/git-openssl cd ~/git-openssl sudo apt-get source git sudo dpkg-source -x git_1.9.2-1.dsc cd git-1.9.2 #注意上面的1.9.2要按照你本身的版本文件名進行修改 vi debian/control 找到libcurl4-gnutls-dev,替換爲libcurl4-openssl-dev sudo dpkg-buildpackage -rfakeroot -b 若是fail on test,能夠將文件debian/rules中的TEST=test註釋掉 最後sudo dpkg -i ../git_1.9.2-1_amd64.deb安裝git便可。

 Git bash Unknown SSL protocol error in connection to github.com:443git

git config http.sslVerify "false"

不行多試幾回,就能夠了.github

相關文章
相關標籤/搜索