最新消息:VPS服务器又从fzhost.net换回Linode了,主题仍用朋友推荐的大前端D8

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

Mac crifan 300浏览 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,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
15 queries in 0.256 seconds, using 10.00MB memory