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

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

了。



发表评论

电子邮件地址不会被公开。 必填项已用*标注

无觅相关文章插件,快速提升流量