我通过这个方便的方法将 Homebrew 移植到 linux 时出现权限错误:http: //blog.frameos.org/2010/11/10/mac-homebrew-ported-to-linux/comment-page-1 /#comment-2208
我有同样的问题:
> $ brew update –verbose
>
> git checkout -q master fatal: Unable to create
> ‘/opt/homebrew/.git/index.lock’: Permission denied Error: Failure
> while executing: git checkout -q master
尝试更改“索引”文件的文件权限,但没有成功。我的最终目标是能够在我的 Ubuntu 服务器上安装 freetds 和 tinytds(brew install freetds),所以如果有其他方法,请让我知道!