[英]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.