brew 一直没有更新内容怎么办?

最近一个月,使用 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
阅读 2.9k
1 个回答

解决了

反正就多执行几次 brew update 吧

昨天执行的 brew update 没用

今天执行了一下就有用了

╰─➤  brew update && brew upgrade                                           
fatal: unable to access 'https://github.com/Homebrew/homebrew-cask/': Recv failure: Operation timed out
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Recv failure: Operation timed out
Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask failed!
Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed!
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
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
recoverpy
==> New Casks
akuity                                                     meld-studio                                                proxy-audio-device
==> Outdated Formulae
aom                      filebeat                 helm                     libarchive               lux                      postgresql@14            sqlite
brotli                   freetype                 highway                  libnghttp2               mycli                    python@3.10              srt
ca-certificates          git                      jpeg-xl                  libsndfile               ncdu                     python@3.11              svt-av1
cloc                     glib                     krb5                     libxcb                   nvm                      python@3.8               tcl-tk
cmake                    gobject-introspection    kubernetes-cli           luajit                   openexr                  python@3.9               tesseract
ffmpeg                   harfbuzz                 leptonica                luajit-openresty         openssl@1.1              sdl2                     unbound
==> Outdated Casks
sequel-ace

You have 42 outdated formulae and 1 outdated cask installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
但是从输出来看,只执行了 brew update ,没有执行 brew upgrade, 有点奇怪

然后我手动执行一下 brew upgrade

➤  brew upgrade                                                                                                                                                          1 ↵
==> Upgrading 42 outdated packages:
ffmpeg 6.0 -> 6.0_1
mycli 1.26.1_2 -> 1.27.0
postgresql@14 14.8_2 -> 14.9
cmake 3.27.1 -> 3.27.4
freetype 2.13.1 -> 2.13.2
filebeat 8.9.0 -> 8.10.0
highway 1.0.5 -> 1.0.7
brotli 1.0.9 -> 1.1.0
harfbuzz 8.1.1 -> 8.2.0
glib 2.76.4 -> 2.78.0
libxcb 1.15_1 -> 1.16
aom 3.6.1 -> 3.7.0
libarchive 3.6.2_1 -> 3.7.2
srt 1.5.2 -> 1.5.3
tesseract 5.3.2 -> 5.3.2_1
sqlite 3.42.0 -> 3.43.1
gobject-introspection 1.76.1 -> 1.78.0
svt-av1 1.6.0 -> 1.7.0
nvm 0.39.4 -> 0.39.5
libnghttp2 1.55.1 -> 1.56.0
openexr 3.1.10 -> 3.2.0
krb5 1.21.1 -> 1.21.2
ca-certificates 2023-05-30 -> 2023-08-22
luajit-openresty 2.1-20230410 -> 2.1-20230911
tcl-tk 8.6.13_4 -> 8.6.13_5
openssl@1.1 1.1.1v -> 1.1.1w
leptonica 1.82.0_2 -> 1.83.1
cloc 1.96.1 -> 1.98
jpeg-xl 0.8.2 -> 0.8.2_1
python@3.10 3.10.12_1 -> 3.10.13
luajit 2.1.0-beta3-20230712.2 -> 2.1.0-beta3-20230813.2
kubernetes-cli 1.27.4 -> 1.28.2
unbound 1.17.1_1 -> 1.18.0_1
ncdu 2.2.2 -> 2.3
sdl2 2.28.2 -> 2.28.3
python@3.11 3.11.4_1 -> 3.11.5
python@3.8 3.8.17_1 -> 3.8.18
helm 3.12.2 -> 3.12.3
lux 0.19.0 -> 0.20.0
libsndfile 1.2.0_1 -> 1.2.2
git 2.41.0_2 -> 2.42.0
python@3.9 3.9.17_1 -> 3.9.18
==> Fetching sqlite
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/sqlite-3.43.1.arm64_ventura.bottle.1.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching luajit-openresty
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/luajit-openresty-2.1-20230911.arm64_ventura.bottle.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching libarchive
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/libarchive-3.7.2.arm64_ventura.bottle.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching ca-certificates
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/ca-certificates-2023-08-22.arm64_ventura.bottle.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching openssl@1.1
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/openssl%401.1-1.1.1w.arm64_ventura.bottle.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching krb5
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/krb5-1.21.2.arm64_ventura.bottle.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching filebeat
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/filebeat-8.10.0.arm64_ventura.bottle.tar.gz
######################################################################################################################################################################## 100.0%
==> Fetching highway
........
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题