【问题标题】:Homebrew update failure on macMac 上的 Homebrew 更新失败
【发布时间】:2016-05-13 17:32:38
【问题描述】:

在执行brew update 时,我收到以下错误:

fatal: Unable to find remote helper for 'https'
Error: Fetching /usr/local failed!
fatal: Unable to find remote helper for 'https'
Error: Fetching /usr/local/Library/Taps/caskroom/homebrew-cask failed!
Already up-to-date.

【问题讨论】:

  • 如果你运行brew install git然后再试一次是否有效?
  • 这似乎解决了问题,谢谢 bfontaine!
  • 不客气;我将此添加为答案,以便可以将问题标记为已解决。

标签: git macos homebrew


【解决方案1】:

这是您的git 安装问题;您可以使用以下命令更新到最新版本来修复它:

brew install git

【讨论】:

  • 这帮助我完成了工作。请注意,我必须在此之后不止一次执行brew update
  • 这对我的机器没有影响。我的可能是由于蒙特雷升级。
【解决方案2】:

我也遇到了这个问题,对我来说这是因为有问题的 repo 是通过 ssh 克隆的,而且我的私钥受密码保护。为了解决这个问题,我使用了ssh-agent

eval `ssh-agent`

ssh-add

添加密钥并输入密码后,brew update 成功。

【讨论】:

    【解决方案3】:

    这是因为 brew 指向一个非标准的 github 源。使用以下命令将 brew 指向正确的 github URL。

    git -C "/usr/local/Homebrew" 远程设置-url 来源https://github.com/Homebrew/brew

    在此之后运行 brew update。

    【讨论】:

    • 在此尝试之后我的仍然失败。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-01
    • 1970-01-01
    • 2015-10-24
    • 1970-01-01
    • 1970-01-01
    • 2014-11-15
    相关资源
    最近更新 更多