编译镜像时报错 Resolving www.openssl.org (www.openssl.org)... failed

2022-12-01T18:21:28 >>> host-libopenssl 1.1.1h Downloading
2022-12-01T18:21:28 --2022-12-01 18:21:28-- https://www.openssl.org/source/openssl-1.1.1h.tar.gz
2022-12-01T18:21:34 Resolving www.openssl.org (www.openssl.org)... failed: Name or service not known.
2022-12-01T18:21:34 wget: unable to resolve host address 'www.openssl.org'
2022-12-01T18:21:34 --2022-12-01 18:21:34-- http://sources.buildroot.net/openssl-1.1.1h.tar.gz
2022-12-01T18:21:34 Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.0.37, 104.26.1.37, ...
2022-12-01T18:21:35 Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80... connected.
2022-12-01T18:21:35 HTTP request sent, awaiting response... 404 Not Found

看样子是从两个地方都下载不了openssl-1.1.1h。

解决方案,修改
buildroot/package/libopenssl/1.1.1h/libopenssl.mk

LIBOPENSSL_SITE = https://www.openssl.org/source
改为
LIBOPENSSL_SITE = https://mirror.math.princeton.edu/pub/openssl/source/old/1.1.1

你可能感兴趣的:(编译镜像时报错 Resolving www.openssl.org (www.openssl.org)... failed)