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

2022-10-25 14:21:02 +08:00
 purplemystic

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
2052 次点击
所在节点    Apple
20 条回复
lostberryzz
2022-10-25 15:09:23 +08:00
切换回默认源无问题
freeair
2022-10-25 15:19:20 +08:00
换默认源吧。
purplemystic
2022-10-25 15:23:48 +08:00
我删除了, 也没有用
F1reman
2022-10-25 15:24:37 +08:00
大概率清华源抽风了。。
swulling
2022-10-25 15:24:59 +08:00
猜测是 https 的加密算法客户端已经不支持了,用官方源吧
purplemystic
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
2022-10-25 15:29:21 +08:00
x86_64-apple-darwin22.0

虽然实际编译的还是 arm64
purplemystic
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
2022-10-25 15:33:57 +08:00
@F1reman 中科大的也试了, 也不行
purplemystic
2022-10-25 15:35:01 +08:00
@swulling 按照报的错误, 感觉像是 curl 的某个功能没有, 但是我的 curl 已经是 7.84 了, 最新的也才 7.85
purplemystic
2022-10-25 15:36:09 +08:00
@MrKrabs 是不是应该 curl 重新手动编译成 arm 版本的?
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
2022-10-25 15:41:18 +08:00
MrKrabs
2022-10-25 16:29:49 +08:00
@purplemystic 不用管,显示问题
F1reman
2022-10-25 17:00:18 +08:00
对了 你可以试试 brew doctor 之前我的 brew 敲啥都不行,用的这个命令就修复了
zhangchongjie
2022-10-25 17:01:30 +08:00
国内源动不动抽风,有网络条件还是默认的吧,
purplemystic
2022-10-25 17:30:56 +08:00
@F1reman 我这个好像是 libcurl 出问题了, git clone 也报相同的错误了, 但是我手动去编译 libcurl 又报了其他错误
purplemystic
2022-10-25 17:32:15 +08:00
inbox
2022-10-26 06:59:20 +08:00
@purplemystic brew bundle dump 一下备份,然后卸载 homwbrew 重装吧…
purplemystic
2022-10-28 08:58:41 +08:00
@inbox 我系统重装了, 然后又从 12 升到 13 了, 这个 libcurl 的问题没了, 但是 iterm2 会出现中文乱码很坑, 更改终端编码, 也没用

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/889687

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX