Ubuntu 11.10(oneiric ocelot):
当我尝试通过 add-apt-repository 添加新的 ppa 时,它返回:
rene@rene-MS-N104:~$ sudo add-apt-repository ppa:tualatrix/ppa
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 88, in <module>
ppa info = get_ppa_info_from_lp(usr, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
curl.perform()
pycurl.error(35, 'gnutls_handshake() failed: A TLS packet with unexpected length was recieved.')
Run Code Online (Sandbox Code Playgroud)
我对 Ubuntu 还很陌生,不知道如何继续。
尝试连接到 HTTPS 网站时,出现此错误curl: (35) gnutls_handshake() failed: Error in the pull function.。
详细:
curl -vvv "https://example.tld"
* Rebuilt URL to: https://example.tld/
* Trying 1.2.3.4...
* Connected to example.tld (1.2.3.4) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 592 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: Error in the pull function.
* Closing connection 0
curl: (35) gnutls_handshake() failed: Error in the pull function.
Run Code Online (Sandbox Code Playgroud)
该网站的 TLS 配置似乎配置正确。
更多信息:
$ curl -V
curl 7.47.0 (x86_64-pc-linux-gnu) …Run Code Online (Sandbox Code Playgroud) 尝试通过 https 连接到 github.com、google.com、dropbox.com 时出现以下错误,但 stackoverflow.com、askubuntu.com 和大多数 https 网站都可以正常工作。
相关详情:
错误信息:
$ openssl s_client -connect github.com:443
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 311 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: …Run Code Online (Sandbox Code Playgroud)