最近一个月,使用 brew 一直更新不到内容
╰─➤ brew upgrade
Running `brew update --auto-update`...
上面的就是全部输出了,看起来是没有什么需要更新。但是 brew 更新一直很激进的
比如我现在的 python3.11 还是 4 版本,但是python 官方都已经发布 python3.11.5 了
按照 brew 的尿性,可能已经要给我更新 python3.11.5 了
╭─ponponon@MBP13ARM ~/Desktop
╰─➤ where python3.11
/opt/homebrew/bin/python3.11
╭─ponponon@MBP13ARM ~/Desktop
╰─➤ python3.11 --version
Python 3.11.4
我用的是中科大的镜像,是中科大的镜像不更新了吗?
─➤ brew config
HOMEBREW_VERSION: 3.6.20
ORIGIN: https://mirrors.ustc.edu.cn/brew.git
HEAD: 344d32bf7f40183359592ef81ca6486e0587981b
Last commit: 8 months ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 6b4073f6a9f41c5c1fc3261965244d5571add5b5
Core tap last commit: 9 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.3 build 1403
Git: 2.41.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.5.2-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: N/A
Rosetta 2: false
我该如何排查?
先update ,然后upgrade
─➤ brew update && brew upgrade
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Recv failure: Operation timed out
Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed!
==> Homebrew collects anonymous analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).
Installing from the API is now the default behaviour!
You can save space and time by running:
brew untap homebrew/core
brew untap homebrew/cask
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#=#=- # # #=O#- # # -#O=- # # # ######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################################################################################################################################################################################################### 100.0%
Updated 1 tap (homebrew/services).
No changes to formulae or casks.
查看 python3.11 版本,还是没有更新
╰─➤ python3.11 --version 1 ↵
Python 3.11.4
解决了
反正就多执行几次 brew update 吧
昨天执行的 brew update 没用
今天执行了一下就有用了
然后我手动执行一下
brew upgrade