1、卸载

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

2、安装【卸载与安装差别只有最后的install和undeinstall】

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

3、更新

brew update

 

遇到问题:

1、raw.githubusercontent.com 链接不到或者访问太慢

解决:绑定host

199.232.28.133 raw.githubusercontent.com

有host修改软件,直接在软件修改即可

没有的按照如下方式修改追加

sudo vim /etc/hosts

在hosts文件最后追加如下,保存退出即可:

199.232.28.133 raw.githubusercontent.com

 

 

----------smile

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-04-02
  • 2021-09-17
  • 2021-09-23
  • 2021-10-27
  • 2022-02-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-11-03
相关资源
相似解决方案