解决git gnutls_handshake失败
来源:互联网 发布:盐与避难所mac版 编辑:程序博客网 时间:2024/05/17 06:43
http://askubuntu.com/questions/186847/error-gnutls-handshake-falied-when-connecting-to-https-servers
解决git 无法clone的问题,错误提示如下
error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing ...fatal: HTTP request failed
Got reason of the problem, it was gnutls
package. It's working weird behind a proxy. Butopenssl
is working fine even in weak network. So workaround is that we should compilegit
with openssl
. To do this, run the following commands:
sudo apt-get install build-essential fakeroot dpkg-devmkdir ~/git-opensslcd ~/git-opensslsudo apt-get source gitsudo apt-get build-dep gitsudo apt-get install libcurl4-openssl-devsudo dpkg-source -x git_1.7.9.5-1.dsccd git_1.7.9.5 8.
Then, edit debian/control
file (run the command: gksu gedit debian/control
) and replace all instances oflibcurl4-gnutls-dev
with libcurl4-openssl-dev
sudo dpkg-buildpackage -rfakeroot -b
(if it's failing on test, you can remove the line TEST=test
from the filedebian/rules
)
sudo dpkg -i ../git_1.7.9.5-1_i386.deb
Inspired from here http://code.google.com/p/wfuzz/wiki/PyCurlSSLBug
0 0
- 解决git gnutls_handshake失败
- 解决git gnutls_handshake失败
- 解决git失败
- Git Entensions push失败解决
- git通过https访问仓库遇到error: gnutls_handshake() failed问题
- 解决git clone失败的问题
- 【Github】向github推送代码出现error: gnutls_handshake() failed GIT repository错误的解决方案
- 【Github】向github推送代码出现error: gnutls_handshake() failed GIT repository错误的解决方案
- git时认证失败(Authentication failed )的解决
- Ubuntu 12.04安装gcc/g++ 4.8.1(解决install gcc-4.8时error: gnutls_handshake() failed: A TLS packet...)
- gnutls_handshake() failed问题解决方法
- git commit 失败"Untracked files,Changes not staged for commit" 问题的解决
- 解决 :android studio 提交代码到git/github失败 Could not read from remote repository
- 【Git之窗】(九)Sparse checkout解决pull远程库特定文件失败问题
- 切换Git账号后Push失败403错误的解决过程
- git push 失败
- git push 失败
- git add .失败解决办法
- MFC截图程序的实现(五)
- Cube
- C#的线程类之Thread类以及对为什么设置线程优先级却不先执行这一问题本身的认识
- 测试方法总结
- 杭电 1711 Number Sequence
- 解决git gnutls_handshake失败
- 边走边充电:15岁少年发明手机充电鞋
- libstdc++.so.6问题,DB2安装预检查报错
- OR1200中指令Cache的结构
- #include <iostream> using namespace std; C++命名空间是什么?
- swift与objective-c混编
- 用getpeername函数获取套接字的地址族
- 将CAS的HTTPS认证方式改为HTTP
- linux线程函数中代替sleep的方法