似乎是与 openssl 相关的问题。有人知道这是什么吗?
请注意,该 URL 在浏览器中有效。
使用 wget:
# wget -d https://deb.nodesource.com/setup_8.x
DEBUG output created by Wget 1.19.4 on linux-gnu.
Reading HSTS entries from /home/user/.wget-hsts
URI encoding = ‘UTF-8’
Converted file name 'setup_8.x' (UTF-8) -> 'setup_8.x' (UTF-8)
--2018-09-02 19:54:06-- https://deb.nodesource.com/setup_8.x
Could not seed PRNG; consider using --random-file.
OpenSSL: error:2406F07A:random number generator:RAND_load_file:Not a regular file
Disabling SSL due to encountered errors.
使用卷曲:
# curl -v -L https://deb.nodesource.com/setup_8.x
* Trying 205.251.207.2...
* TCP_NODELAY set
* Connected to deb.nodesource.com (205.251.207.2) port 443 (#0)
<hangs>
答案1
也许这有帮助:https://help.directadmin.com/item.php?id=227
当使用 wget 和 https 时,如果出现以下错误:
Could not seed PRNG; consider using --random-file. Disabling SSL due to encountered errors.
这意味着 udev 守护进程可能处于物理模式。手动创建 /dev/random 设备:
mknod /dev/random c 1 8