【问题标题】:brew upgrade git fetch error, yet repo can download with git clone?brew upgrade git fetch 错误,但 repo 可以用 git clone 下载?
【发布时间】:2015-02-12 19:27:50
【问题描述】:

在brew --version => 0.9.5 上发生以下错误。即使我brew uninstall emacs 并安装而不是升级,同样的错误。

我可以在 brew 打印输出中 git clone 相同的 url,它可以连接和克隆 repo 没问题。我是否以某种方式在本地弄乱了 brew 使用的存储库? brew doctor 什么都没有,截至今天早上我在 brew 上是最新的。

想法?

brew upgrade --cocoa --HEAD emacs
==> Upgrading 1 outdated package, with result:
emacs HEAD
==> Upgrading emacs
==> Cloning http://git.sv.gnu.org/r/emacs.git
Updating /Library/Caches/Homebrew/emacs--git
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
Error: Failed to download resource "emacs"
Failure while executing: git fetch -q origin

【问题讨论】:

    标签: git emacs homebrew


    【解决方案1】:

    尝试清除缓存:

    rm -r /Library/Caches/Homebrew/emacs--git
    

    或者使用 --force 获取:

    brew fetch emacs --HEAD --force
    

    【讨论】:

    • brew fetch 在您的回答中,就是答案。没有尝试rm 路线。谢谢!
    猜你喜欢
    • 2012-11-07
    • 1970-01-01
    • 1970-01-01
    • 2018-12-10
    • 1970-01-01
    • 2019-05-10
    • 2012-08-24
    • 2021-08-17
    • 1970-01-01
    相关资源
    最近更新 更多