![全新 Debian 测试 - wget 返回 GnuTLS 错误](https://linux22.com/image/189242/%E5%85%A8%E6%96%B0%20Debian%20%E6%B5%8B%E8%AF%95%20-%20wget%20%E8%BF%94%E5%9B%9E%20GnuTLS%20%E9%94%99%E8%AF%AF.png)
全新安装了 Debian 10 并尝试运行以下命令:
root@siren:/# wget music-server.net/download/install.sh
--2021-03-08 15:32:18-- http://music-server.net/download/install.sh
Resolving music-server.net (music-server.net)... 73.189.195.198
Connecting to music-server.net (music-server.net)|73.189.195.198|:80... connected.
HTTP request sent, awaiting response... 308 Permanent Redirect
Location: https://music-server.net/download/install.sh [following]
--2021-03-08 15:32:18-- https://music-server.net/download/install.sh
Connecting to music-server.net (music-server.net)|73.189.195.198|:443... connected.
GnuTLS: A TLS fatal alert has been received.
GnuTLS: received alert [80]: Internal error
Unable to establish SSL connection.
尝试了以下方法来修复它:
- 升级到 Debian 测试
- 下载并安装最新的 wget 明确添加 openssl 支持
- wget google.com 工作得很好
wget 在我的其他系统上运行良好,所以真的不知道这里发生了什么。它在同一闪存驱动器上另一个全新安装的 Debian 上运行良好。
额外的
也从源代码安装了 openssl。
答案1
要忽略此错误(过期、无效、不可信...证书),请使用--no-check-certificate
选项:
wget --no-check-certificate music-server.net/download/install.sh
相同的选项可以与以下命令一起使用wget2
:
sudo apt install wget2
wget2 --no-check-certificate music-server.net/download/install.sh