解决:Another active Homebrew update process is already in progress.

时间:2025-03-18 16:44:21

在用homebrew安装东西的时候遇到ERROR

Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.

意思就是:还有正在进行中的Homebrew更新过程。
请等待它完成或终止它继续。

我在打开的终端窗口里看了又看,感觉没有其他正在安装的进程

在终端下输入ps -aux | grep ruby
显示:

ps: No user named 'x'

把x改成Mac的名字就可以看到正在运行的进程了

再在终端下输入

rm -rf /usr/local/var/homebrew/locks

就可以重新安装了

参考博客:
/MASILEJFOAISEGJIAE/article/details/85253919
/zhangyuehuan/article/details/71000159