Updating Homebrew 太慢,且没有进度显示

brew install git-lfs
Updating Homebrew... 

mac 安装软件,经常会遇到Updating Homebrew 一直卡着,很慢,也不知道进度

解决慢的问题

方法1
# 更换镜像源,然后正常安装即可。
cd `brew --repo`
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

以下是常用的镜像源,可以试下自己用哪个快

  • https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git - 清华
  • https://mirrors.ustc.edu.cn/brew.git - 中科大
  • https://mirrors.aliyun.com/homebrew/brew.git 阿里

阿里homebrew镜像配置方法:
https://developer.aliyun.com/mirror/homebrew

方法2

在显示Updating Homebrew… 的时候,按下ctrl+c一次,会终止更新操作,直接执行安装,可临时解决问题

进度条问题

方法1:

v2ex上有人说:
Homebrew 已更新到 2.5.1 版本,该问题解决。

方法2:

打开mac的“活动监视器”,选择“网络”,找到“git-remote-https ”,能看到已经接收到的数据量。可以看到运行情况

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值