V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
purplemystic
V2EX  ›  Apple

macOS 13 brew 报错: A requested feature, protocol or option was not found built-in in this libcurl due to a build-time dec

  •  
  •   purplemystic · 2022-10-25 14:21:02 +08:00 · 2003 次点击
    这是一个创建于 754 天前的主题,其中的信息可能已经有所发展或是发生改变。

    BUG INFO

    ❯ brew update
    fatal: unable to access 'https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.git/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://mirrors.ustc.edu.cn/homebrew-cask.git/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://mirrors.ustc.edu.cn/homebrew-cask-versions.git/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-command-not-found.git/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://mirrors.ustc.edu.cn/homebrew-core.git/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://github.com/Homebrew/brew/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    fatal: unable to access 'https://github.com/snyk/homebrew-tap/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask-fonts failed!
    Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask failed!
    Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask-drivers failed!
    Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask-versions failed!
    Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found failed!
    Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed!
    Fetching /opt/homebrew failed!
    Fetching /opt/homebrew/Library/Taps/snyk/homebrew-tap failed!
    

    curl version

    ❯ curl --version
    curl 7.84.0 (x86_64-apple-darwin22.0) libcurl/7.84.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.47.0
    Release-Date: 2022-06-27
    Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
    Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
    

    others

    mac mini 8G M1
    
    20 条回复    2022-10-28 08:58:41 +08:00
    lostberryzz
        1
    lostberryzz  
       2022-10-25 15:09:23 +08:00
    切换回默认源无问题
    freeair
        2
    freeair  
       2022-10-25 15:19:20 +08:00
    换默认源吧。
    purplemystic
        3
    purplemystic  
    OP
       2022-10-25 15:23:48 +08:00
    我删除了, 也没有用
    F1reman
        4
    F1reman  
       2022-10-25 15:24:37 +08:00
    大概率清华源抽风了。。
    swulling
        5
    swulling  
       2022-10-25 15:24:59 +08:00 via iPhone
    猜测是 https 的加密算法客户端已经不支持了,用官方源吧
    purplemystic
        6
    purplemystic  
    OP
       2022-10-25 15:28:19 +08:00
    ```bash
    ❯ git remote -vvv
    origin https://github.com/Homebrew/brew (fetch)
    origin https://github.com/Homebrew/brew (push)
    ❯ git pull
    fatal: unable to access 'https://github.com/Homebrew/brew/': A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    ```
    MrKrabs
        7
    MrKrabs  
       2022-10-25 15:29:21 +08:00
    x86_64-apple-darwin22.0

    虽然实际编译的还是 arm64
    purplemystic
        8
    purplemystic  
    OP
       2022-10-25 15:33:02 +08:00
    ![Snipaste_2022-10-25_15-31-56.png]( https://s2.loli.net/2022/10/25/D9OfeEXpwIJadYP.png)
    purplemystic
        9
    purplemystic  
    OP
       2022-10-25 15:33:57 +08:00
    @F1reman 中科大的也试了, 也不行
    purplemystic
        10
    purplemystic  
    OP
       2022-10-25 15:35:01 +08:00
    @swulling 按照报的错误, 感觉像是 curl 的某个功能没有, 但是我的 curl 已经是 7.84 了, 最新的也才 7.85
    purplemystic
        11
    purplemystic  
    OP
       2022-10-25 15:36:09 +08:00
    @MrKrabs 是不是应该 curl 重新手动编译成 arm 版本的?
    Crump
        12
    Crump  
       2022-10-25 15:36:34 +08:00
    用官方没问题
    # 还原 brew.git
    cd "$(brew --repo)"
    git remote set-url origin https://github.com/Homebrew/brew.git

    # 还原 homebrew-core.git
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    git remote set-url origin https://github.com/Homebrew/homebrew-core.git
    purplemystic
        13
    purplemystic  
    OP
       2022-10-25 15:41:18 +08:00
    MrKrabs
        14
    MrKrabs  
       2022-10-25 16:29:49 +08:00
    @purplemystic 不用管,显示问题
    F1reman
        15
    F1reman  
       2022-10-25 17:00:18 +08:00
    对了 你可以试试 brew doctor 之前我的 brew 敲啥都不行,用的这个命令就修复了
    zhangchongjie
        16
    zhangchongjie  
       2022-10-25 17:01:30 +08:00
    国内源动不动抽风,有网络条件还是默认的吧,
    purplemystic
        17
    purplemystic  
    OP
       2022-10-25 17:30:56 +08:00
    @F1reman 我这个好像是 libcurl 出问题了, git clone 也报相同的错误了, 但是我手动去编译 libcurl 又报了其他错误
    purplemystic
        18
    purplemystic  
    OP
       2022-10-25 17:32:15 +08:00
    inbox
        19
    inbox  
       2022-10-26 06:59:20 +08:00 via iPhone
    @purplemystic brew bundle dump 一下备份,然后卸载 homwbrew 重装吧…
    purplemystic
        20
    purplemystic  
    OP
       2022-10-28 08:58:41 +08:00
    @inbox 我系统重装了, 然后又从 12 升到 13 了, 这个 libcurl 的问题没了, 但是 iterm2 会出现中文乱码很坑, 更改终端编码, 也没用
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   6237 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:33 · PVG 10:33 · LAX 18:33 · JFK 21:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.