【问题标题】:Homebrew install MongoDB fails自制安装 MongoDB 失败
【发布时间】:2015-04-19 08:34:45
【问题描述】:

我在通过自制软件安装 mongodb 时遇到问题(新 MacBook Pro、OS X 10.10.2、全新安装)。显然,我尝试安装的所有其他软件包(例如wget)都会引发此错误,但这些软件包已正确安装。不幸的是,brew install mongodb 的安装失败并出现以下错误:

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.6.7.yosemite.bottle.tar.gz

curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Error: Failed to download resource "mongodb"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.6.7.yosemite.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Installing mongodb dependency: scons
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/scons-2.3.4.yosemite.bottle.1.tar.gz

curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Error: Failed to download resource "scons"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/scons-2.3.4.yosemite.bottle.1.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sourceforge.net/scons/scons-2.3.4.tar.gz

curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Error: Failed to download resource "scons"
Download failed: https://downloads.sourceforge.net/scons/scons-2.3.4.tar.gz

我还发现了这个线程How to fix curl: (60) SSL certificate: Invalid certificate chain,我在其中添加了downloads.sf.netdownloads.sourceforge.net 的证书(两者都使用*.cloudfront.net 作为其证书,因此,你得到一个域不匹配)通过Safari 到“始终信任”。在此之后,安装失败并出现 SHA1 不匹配(我还运行 brew cleanup -s 来清理旧的缓存包):

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.6.7.yosemite.bottle.tar.gz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 4b1749b645a744b38b4959daac46bf80353e3b32
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/mongodb-2.6.7.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Warning: Bottle installation failed: building from source.
==> Installing mongodb dependency: scons
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/scons-2.3.4.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 819d08b7e8c1ba2451db6d7d848f689b108b40aa
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/scons-2.3.4.yosemite.bottle.1.tar.gz
To retry an incomplete download, remove the file above.
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sourceforge.net/scons/scons-2.3.4.tar.gz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 8c55f8c15221c1b3536a041d46056ddd7fa2d23a
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/scons-2.3.4.tar.gz
To retry an incomplete download, remove the file above.

我还发现了这个 github 问题 https://github.com/Homebrew/homebrew/issues/28844,但我的钥匙串中没有任何过期的证书。任何帮助表示赞赏!

【问题讨论】:

  • 我更新了我的问题,还添加了downloads.sourceforge.net 作为可信证书

标签: ssl-certificate homebrew


【解决方案1】:

我也遇到了同样的问题。这似乎是暂时的,因为 SourceForge 网站已部分关闭。

sourceforge.net 网站暂时处于静态离线模式。 在主网站恢复服务之前,只有非常有限的一组项目页面可用。

我想问题很快就会得到解决,您可以在几个小时后重试。可能有更新发布到https://twitter.com/sfnet_ops,尽管目前没有关于此特定中断的任何信息。

【讨论】:

  • 嗯,我在 SourceForge 站点上没有看到任何警告,希望这是一个临时问题。但我昨天也收到了这个警告,所以可能不是暂时的。
  • Hmmmm,看来问题没有了。至少我现在可以安装 mongodb 而不会出现任何错误(并且在我的配置/安装中没有更改任何内容)
  • 嗨!我是 Homebrew 维护者,这就是原因。 Sourceforge 的停机时间最近真的很麻烦,我们现在正在转移到一个新的瓶子主机。很抱歉给您带来糟糕的体验!
  • @tim 很高兴听到它,SourceForge 绝对不是它曾经的样子 :(
  • 但是比如github在他们强制一切都到https时也遇到了很多麻烦(这是好事,但正如我们所经历的那样,造成了很多麻烦)
猜你喜欢
  • 2016-12-16
  • 1970-01-01
  • 2020-05-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-27
  • 2020-12-18
相关资源
最近更新 更多