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

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

Mac crifan 13932浏览 0评论

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

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.185 seconds, using 22.13MB memory