Saya menjalankan bir sebagai root, sekarang sudah tidak berfungsi. Tidak ada pembaruan lagi. Bagaimana cara memperbaiki?
$ brew update && brew upgrade
error: Unable to append to .git/logs/HEAD: Permission denied
error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied
Error: Failed to update tap: caskroom/cask
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Your XQuartz (2.7.4) is outdated
Please install XQuartz 2.7.7:
https://xquartz.macosforge.org
macos
command-line
homebrew
Ivanov
sumber
sumber
Jawaban:
Setel ulang izin cache / usr / local dan Homebrew ke pengguna saat ini:
sumber
Kasus terburuk, cukup instal ulang Homebrew. Ini telah membantu dalam kasus saya:
sumber