A TLS packet with unexpected length was received.

系统环境

主系统 OS X,虚拟机 Ubuntu 14.04 64bit。

问题描述

在git clone时遇见错误:

···
A TLS packet with unexpected length was received

解决方法

a.回答1

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

b.检查虚拟机网络设置,若虚拟机为桥接模式更改为NAT模式,解决问题。

2017/2/22

相关文章:

  • 2021-12-28
  • 2021-06-22
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2021-09-09
  • 2021-08-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-10-04
  • 2021-07-08
  • 2022-01-13
相关资源
相似解决方案