macOS 13 brew 报错: A requested feature, protocol or option was not found built-in in this libcurl due to a build-time dec - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册 div class="sep5">
已注册用户请  登录
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 2738 次点击
    这是一个创建于 1149 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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     Solana     2953 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 14:09 PVG 22:09 LAX 06:09 JFK 09:09
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86