相关疑难解决方法(0)

add-apt-repository 返回意外的长度错误

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 还很陌生,不知道如何继续。

add-apt-repository

8
推荐指数
1
解决办法
1万
查看次数

16.04 - curl: (35) gnutls_handshake() 失败:pull 函数出错

尝试连接到 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)

networking curl openssl gnutls

6
推荐指数
1
解决办法
2万
查看次数

Ubuntu 16.04 openssl s_client 写:errno=104

尝试通过 https 连接到 github.com、google.com、dropbox.com 时出现以下错误,但 stackoverflow.com、askubuntu.com 和大多数 https 网站都可以正常工作。

相关详情:

  • 我支持工作代理,但是在使用 Fedora 28 时我可以正常连接,只是在 Ubuntu 16.04 上我遇到了问题。办公室里没有其他人有问题,但他们大多使用 Mac。
  • 这是在我自己的桌面上,而不是在服务器/VM/Docker 等上。
  • 我可以通过我的移动热点或其他 WiFi 网络连接到这些网站
  • 编辑:我在带有 Ubuntu 16.04 的单独 Thinkpad 笔记本电脑上进行了测试,那里没有问题。所以这是这台机器(戴尔 XPS 13 9370)特有的东西。

错误信息:

$ 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)

ssl curl openssl tls gnutls

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

curl ×2

gnutls ×2

openssl ×2

add-apt-repository ×1

networking ×1

ssl ×1

tls ×1