运行 brew update
后报错 找不到 homebrew-gui. 确实在 github 上已经没有了, 可能是老版本的 homebrew 的源问题. 任何问题重装就行了.
brew 安装过程比较简单
安装命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/sbin
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/sbin
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/sbin
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown xiedonghua /usr/local/sbin
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/sbin
==> Downloading and installing Homebrew...
HEAD is now at 6decac587 Merge pull request #6803 from MikeMcQuaid/latest_version_installed
remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-gui/' not found
Error: homebrew/homebrew-gui does not exist! Run 'brew untap homebrew/homebrew-gui'
To restore the stashed changes to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core run:
'cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core && git stash pop'
Updated 3 taps (homebrew/core, homebrew/cask and caskroom/cask).
过程中出现错误
fatal: repository 'https://github.com/Homebrew/homebrew-gui/' not found
错误信息给了解决方法
运行 'brew untap homebrew/homebrew-gui'
然后重新再运行
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
顺利解决.
网友评论