最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]brew update出错:error: could not lock config file .git/config: Permission denied

Mac crifan 14602浏览

mac中brew update出错:

 brew update
error: could not lock config file .git/config: Permission denied

搜:

brew update  error could not lock config file .git/config: Permission denied

amazon ec2 – git error "could not lock config file .git/config permission denied" – Stack Overflow

git – Trouble setting up Tower with my GitHub Account – error: could not lock config file – Stack Overflow

lion – Homebrew permissions & multiple users needing to brew update – Ask Different

后来参考:

lion – Homebrew permissions & multiple users needing to brew update – Ask Different

去执行:

[总结]

sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local

(不用去管/Library/Caches/Homebrew,因为找不到对应路径)

然后就可以继续正常的:

brew update

了。

转载请注明:在路上 » [已解决]brew update出错:error: could not lock config file .git/config: Permission denied

85 queries in 0.335 seconds, using 19.27MB memory