当我尝试对Homebrew
做任何事情时,我收到以下错误,并且不知道如何解决它。
我跑:brew update
我收到以下错误消息:
/usr/local/Homebrew/Library/Homebrew/utils/lock.sh: line 19:/usr/local/var/homebrew/locks/update: Permission denied
-e:1:in 'initialize': Bad file descriptor (Errno::EBADF)
from -e:1:in 'new'
from -e:1:in '<main>'
Error: Another active Homebrew process is already in progress.
Please wait for it to finish or terminate it to continue.
答案 0 :(得分:8)
这可能是因为另一个Homebrew实例崩溃并留下了一个锁定文件。您可以通过删除锁定目录中的所有文件来手动删除它:
rm /usr/local/var/homebrew/locks/*
答案 1 :(得分:1)
我通过rm -rf / usr / local / Library / Locks / *
解决了这个问题