MacOS - curl:(60) SSL 证书问题:无法获取本地颁发者证书

MacOS - curl:(60) SSL 证书问题:无法获取本地颁发者证书

在 Mac(Catalina)上,我尝试m4使用终端重新安装软件包,但是失败并出现以下错误。

$ brew reinstall m4
==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19
Already downloaded: /Users/buildsystem/Library/Caches/Homebrew/downloads/5b2a7f715487b7377e409e8ca58569040cd89f33859f691210c58d94410fd33b--m4-1.4.19.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/m4/blobs/sha256:e0fec6a49fd80cc7279c71f319d70d01ed49e894b53cd91e39f170288232fa93
-#O#- #   #
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Failed to download resource "m4"
Download failed: https://ghcr.io/v2/homebrew/core/m4/blobs/sha256:e0fec6a49fd80cc7279c71f319d70d01ed49e894b53cd91e39f170288232fa93

即使之后echo insecure >> $HOME/.curlrc也会产生同样的错误。请让我知道解决这个问题。提前致谢!

相关内容