git - 错误 : gnutls_handshake() failed GIT repository

标签 git github ubuntu-10.04

当我尝试克隆 git 存储库时出现以下错误。我也正确配置了 rsa 公钥。

$ git clone https://github.com/blah/blah.git
Initialized empty Git repository in /home/arun/.git/
error: gnutls_handshake() failed: A TLS packet with unexpected length was
       received. while accessing https://github.com/blah/blah.git/info/refs

fatal: HTTP request failed

最佳答案

它可以用于 GnuTLs or pycurl bug

The following is the new method for pycurl_7.19.0-4ubuntu3:

sudo apt-get install build-essential fakeroot dpkg-dev
mkdir ~/python-pycurl-openssl
cd ~/python-pycurl-openssl
sudo apt-get source python-pycurl
sudo apt-get build-dep python-pycurl
sudo apt-get install libcurl4-openssl-dev
sudo dpkg-source -x pycurl_7.19.0-4ubuntu3.dsc
cd pycurl-7.19.0
# remove the HAVE_CURL_GNUTLS=1 in the following file
sudo vim debian/patches/10_setup.py.dpatch
# remove the HAVE_CURL_GNUTLS=1 in the following file
sudo vim setup.py
# replace all gnutls into openssl in the following file
sudo vim debian/control
sudo dpkg-buildpackage -rfakeroot -b
sudo dpkg -i ../python-pycurl_7.19.0-4ubuntu3_amd64.deb

关于git - 错误 : gnutls_handshake() failed GIT repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13524242/

相关文章:

git - 启动 gitk 错误

ps-left-header 中的 Git 分支名称

git - 在 TortoiseGit 中,git branch -d 的等价物是什么(没有 --force 选项)?

git - 如何推送到另一个分支

git - 'git remote add' 是否只为同一个存储库创建别名?

php - 安装所有LAMP组件后无错误输出

Git 错误 : <filename> is far too short to be a packfile

github - 使用 Github Api V3,我如何获得我有写访问权限的所有存储库?

linux - Prof. 在 Linux 中布局安装文件的方法是什么

ubuntu - 如何通过互联网在 ubuntu 10.04 中设置远程 ssh 连接和挂载目录?