Windows 10 WSL(Linux的Windows子系统)上的Ubuntu:无法与WGET和CURL建立SSL连接

问题描述 投票:0回答:2

我想在Windows上安装Ubuntu,因为我想使用bash。然后我尝试安装anaconda,我注意到当我尝试获取安装脚本时出现此错误:

 wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh

--2018-12-29 22:54:16--  https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
Resolving repo.continuum.io (repo.continuum.io)... 104.16.19.10, 104.16.18.10, 2606:4700::6810:120a, ...
Connecting to repo.continuum.io (repo.continuum.io)|104.16.19.10|:443... connected.
Unable to establish SSL connection.

我尝试了CURL,但收到类似的错误:

curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to repo.continuum.io:443

[我还注意到我无法通过https克隆git存储库。从软件包管理器(如Python的pip)安装软件包也失败。

[Ubuntu通过WSL和SSL似乎有些问题。

[还有其他堆栈溢出问题试图解决此问题,但是它们都没有针对WSL上的Ubuntu,也没有一个解决方案对我有用。

我知道有获取这些文件或存储库的解决方法。我感兴趣的是解决SSL错误。

提前感谢!

ubuntu ssl curl wget windows-subsystem-for-linux
2个回答
0
投票

解决方案:

  1. 卸载防病毒软件(在我的情况下为kaspersky)
  2. 重新启动系统
  3. 尝试安装WLS ubuntu软件包。

wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh

我也遇到过同样的问题,然后我发现Kaspersky正在阻止ubuntu WLS HTTPS。 Kaspersky forum]中已提及


0
投票

我在获取github脚本时也遇到了这个问题。我认为这与UWP应用商店的沙箱机制有关,我设法通过提琴手软件为UWP ubuntu WSL启用代理来解决此问题。这可能对使用代理连接github的人有所帮助。enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.