[英]Homebrew installation failing on MacOS BigSur
我正在尝试安装 Homebrew,但无法安装。 以下是我得到的错误:
error: unable to unlink old 'Library/Homebrew/brew.sh': Operation not permitted
fatal: Could not reset index file to revision 'origin/master'.
Failed during: git reset --hard origin/master
使用 sudo 运行时,出现以下错误:
Don't run this as root!
更新:看起来这可能是 Big sur 中的一些错误。 使用终端或 go 导航时,没有名为 Homebrew 的文件夹或名为 brew.sh 的文件。 因此,它给出了这个错误。 但是当从查找器中搜索时,该文件夹在其他地方。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
请试试这个
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.