mycang
V2EX  ›  macOS

Mac 下的 homebrew 问题

  •  
  •   mycang · Feb 7, 2021 · 2644 views
    This topic created in 1939 days ago, the information mentioned may be changed or developed.

    ???@Chris-MBP homebrew-core % git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow remote: Counting objects: 356812, done. remote: Compressing objects: 100% (106828/106828), done. Receiving objects: 45% (161508/356812), 57.73 MiB | 116.00 KiB/s

    homebrew 要 update 但是提示要执行 git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow

    不太懂,这是在干嘛 关键是 每次都是失败的这个命令

    7 replies    2021-02-07 12:56:16 +08:00
    mycang
        1
    mycang  
    OP
       Feb 7, 2021
    执行完成之后久是这个样子

    git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
    remote: Counting objects: 356812, done.
    remote: Compressing objects: 100% (106828/106828), done.
    error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed


    还是不能 update
    superrichman
        2
    superrichman  
       Feb 7, 2021 via iPhone
    挂代理试试
    1002xin
        3
    1002xin  
       Feb 7, 2021
    CLT 版本太低了吧
    MrBrand
        5
    MrBrand  
       Feb 7, 2021
    在 .bash_profile 里面加上 export HOMEBREW_NO_AUTO_UPDATE=true,禁止每次都去更新
    MrBrand
        6
    MrBrand  
       Feb 7, 2021
    如果你用的 ohmyzsh,就加在.zshrc 文件里面,
    triple7
        7
    triple7  
       Feb 7, 2021
    应该是你一开始是通过 shadow 方式检出的问题。你可以参考这篇文章设置镜像 https://brew.idayer.com/guide/start#%E4%B8%AD%E7%A7%91%E5%A4%A7%E6%BA%90

    如果设置镜像不行,可以尝试重新安装下,brew.idayer.com 也有对应的说明。

    如果你想用代理或者有代理,可以给终端设置下代理,端口号在代理软件中查看。

    export proxy="http://127.0.0.1:1080"
    export http_proxy=$proxy
    export https_proxy=$proxy
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2741 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 06:51 · PVG 14:51 · LAX 23:51 · JFK 02:51
    ♥ Do have faith in what you're doing.