这里写自定义目录标题

  • 安装brew
    • 替换homebrew源
      • 替换homebrew默认源
      • 替换homebrew-core源
      • brew更新

安装brew

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

如果出现什么连接拒绝的错

sudo vim /etc/hosts

添加一些GitHub的主机名

:~|⇒   brew install wget
Updating Homebrew...
Error: No available formula with the name "wget"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:git -C "$(brew --repo homebrew/core)" fetch --unshallowError: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
~|⇒  brew search wget
Warning: Cask 'copyq' is unreadable: undefined method `method_missing_message' for Utils:Module
No formula or cask found for "wget".
Closed pull requests:
Add AirtestIDE 1.2.3 (https://github.com/Homebrew/homebrew-cask/pull/80297)
Aflplusplus (https://github.com/Homebrew/homebrew-core/pull/50873)
Add support for Whalebrew to bundle (https://github.com/Homebrew/homebrew-bundle/pull/656)
hugo 0.69.0 (https://github.com/Homebrew/homebrew-core/pull/52816)
Add SHA256 sum to keyboard-cleaner 1.2 cask (https://github.com/Homebrew/homebrew-cask/pull/78230)
Fetch formula resources before unlinking during upgrade. (https://github.com/Homebrew/brew/pull/7124)
Update .rubocop.yml (https://github.com/Homebrew/brew/pull/7258)
bombadillo 2.3.1 (new formula) (https://github.com/Homebrew/homebrew-core/pull/54718)
Skip tapping homebrew/cask when on Linux (https://github.com/Homebrew/homebrew-bundle/pull/660)
osmfilter: adding zlib-dependency (https://github.com/Homebrew/linuxbrew-core/pull/20132)
radamsa 0.6 (https://github.com/Homebrew/homebrew-core/pull/51125)
Update skype from 8.55.0.141 to 8.56.0.103 (https://github.com/Homebrew/homebrew-cask/pull/76434)
Fix accessibility issues (https://github.com/Homebrew/brew.sh/pull/441)
wget: Build a bottle for Linux (https://github.com/Homebrew/linuxbrew-core/pull/17585)
wget: revision for OpenSSL 1.1 (https://github.com/Homebrew/homebrew-core/pull/47071)
wiredtiger 3.2.1 (https://github.com/Homebrew/homebrew-core/pull/51348)
monolith 2.0.16 (new formula) (https://github.com/Homebrew/homebrew-core/pull/47033)
libosinfo 1.7.1 (https://github.com/Homebrew/homebrew-core/pull/47460)
Merge 2019-11-23 3c4768deeb (https://github.com/Homebrew/linuxbrew-core/pull/17575)
WIP: Add KnightOS SDK (https://github.com/Homebrew/homebrew-core/pull/49912)

报上面的错误的话 我的办法是修改镜像源 不然之前安装很慢

替换homebrew源

替换homebrew默认源

cd “$(brew --repo)”
git remote set-url origin git://mirrors.ustc.edu.cn/brew.git

替换homebrew-core源

cd “$(brew --repo)/Library/Taps/homebrew/homebrew-core”
git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git

brew更新

brew update

brew install wget
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gettext-0.20.2_1.catalina.b
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libunistring-0.9.10.catalin
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libidn2-2.3.0.catalina.bott
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/openssl%401.1-1.1.1g.catali
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/wget-1.20.3_2.catalina.bott
######################################################################## 100.0%
==> Installing dependencies for wget: gettext, libunistring, libidn2 and openssl@1.1
==> Installing wget dependency: gettext
==> Pouring gettext-0.20.2_1.catalina.bottle.tar.gz
												

mac 安装 brew wget出错 No formula or cask found for “wget“相关推荐

  1. mac  安装brew时报错的问题及解决方式

    mac  安装brew时报错的问题及解决方式 参考文章: (1)mac  安装brew时报错的问题及解决方式 (2)https://www.cnblogs.com/ritte/p/11207036.h ...

  2. MAC 安装brew raw.githubusercontent.com port 443: Connection refused 本人亲自认证过,踩过多种方案,最终认证的解决方案

    MAC 安装brew raw.githubusercontent.com port 443: Connection refused 本人亲自认证过,踩过多种方案,最终认证的解决方案 原因:由于某些你懂 ...

  3. Mac安装brew/yum

    Mac安装brew/yum 安装brew命令: /bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-i ...

  4. mac 安装 brew 异常 fatal: unable to access ‘https://github.com/Homebrew/brew

    mac安装brew fail,mac 安装 brew,mac homebrew 安装失败 为了快速安装 svn, git, nginx 等,我想着先在 macbook 上安装 brew,按照常规的方法 ...

  5. mac安装brew、maven

    1.mac安装brew /usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/i ...

  6. mac 安装 brew 卡在安装过程不动

    problem mac 安装 brew 卡在安装过程不动 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homeb ...

  7. Mac 安装 brew

    一,安装brew 1,安装brew curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/lo ...

  8. Mac安装brew及使用

    命令行执行: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master ...

  9. Mac 安装 brew brew cask 遇到的问题及解决办法

    文章目录 安装 brew Error 解决办法 安装 brew cask Error 解决办法 安装 brew 在 Terminal 执行 官网提供的命令即可 /usr/bin/ruby -e &qu ...

最新文章

  1. 算法与数据结构大系列 - NO.1 - 插入排序
  2. java调用天气预报api_java调用中国天气网api获得天气预报信息
  3. Nginx和PHP-FPM的启动、重启、停止脚本分享
  4. 嵌入式Linux系统编程学习之四Shell编程
  5. 笨方法学python3 mobi_[下载]Learn Python 3 the Hard Way(已更新完整版PDF\AZW3\EPUB\MOBI)...
  6. 通过prompt方法增强开放领域问答模型
  7. 网易编程题-操作序列
  8. linux监测服务日志脚本,LINUX下的一个性能监测脚本
  9. 电源大师课笔记 2.6
  10. 数据库课程设计——人才市场管理系统
  11. matlab和r语言做热图,R语言画图与MATLAB画图PK
  12. iOS 手机照片上传服务器方向不对的原因以及解决方法
  13. |flutter仿微信界面聊天室
  14. 快速搭建个人在线书库,随时随地畅享阅读!
  15. vue下拉框值改变事件_下拉框的change事件
  16. ROS综合学习记录(一)---cmd_vel转换为阿克曼模型的速度变换
  17. mysql 使用java代码进行操作系统_【MySQL 05】使用Java对MySQL进行操作(创建数据库)...
  18. ## YARN运行资源配置
  19. 用计算机弹Despacit,《计算器:游戏》老师,这真的只是个长得好看的计算器而已!...
  20. 四、ESP32单片机wifi的AP与STA模式使用

热门文章

  1. java和python对比
  2. 拳王虚拟项目公社:抖音偏门暴利虚拟资源项目分享,抖音壁纸号年赚20W
  3. 2021高考杭二中成绩查询,2020年杭州高考各高中成绩及本科升学率数据排名及分析...
  4. 蓝思科技今年第一季度营收达48亿元 同比增长6.95%
  5. 视觉符号在平面设计中的应用
  6. 【Unity云消散】巩固step,lerp和smoothstep
  7. 计算机毕业设计Node.js+Vue慧学IT精品课程网站(程序+源码+LW+部署)
  8. git flow linux,Git Flow简介
  9. 电商常规问题part1
  10. paypal提示无法转款到国内银行账户解决方法