【发布时间】:2023-04-11 02:53:01
【问题描述】:
Last login: Mon Mar 7 17:35:51 on console
~ brew update
warning: unable to access '/Users/Jason/.config/git/ignore': Permission denied
warning: unable to access '/Users/Jason/.config/git/attributes': Permission denied
Updated Homebrew from 7f8aa6d to d08692f.
==> New Formulae
cucumber-cpp prometheus znapzend
==> Updated Formulae
afl-fuzz gtk+ orc writerperfect
crystal-lang kafka platformio
dependency-check libvirt sslscan
ghq logtalk syncthing
~
我在我的 macbook 上运行 El Capitan,每当我尝试更新自制软件时,我都会收到这些警告。我正在寻找如何阻止这些警告发生的解决方案。
【问题讨论】:
-
您是否尝试以
sudo运行命令? sudo = 将自己验证为超级用户以获得额外的安全权限 -
当我尝试执行“sudo brew update”时出现错误:懦弱地拒绝“sudo brew update” 您可以将 brew 与 sudo 一起使用,但前提是 brew 可执行文件由 root 拥有。但是,这既不推荐也完全不受支持,因此您需要自担风险。