brew 找不到任何包 [英] brew cannot find ANY packages

查看:421
本文介绍了brew 找不到任何包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

硬盘故障后,我刚从商店拿到了我的 Mac Pro.我正在尝试重新安装我的环境.

I just got my Mac Pro from the shop after hard drive failure. I am trying to install my environment again.

我从自制软件网站上的当前链接安装了自制软件:

I installed homebrew from the current link on the homebrew website:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

但我无法安装任何软件包.Brew 找不到任何东西.

but I cannot install ANY package. Brew cannot find ANYTHING.

 ~ brew install rbenv
Error: No available formula with the name "rbenv"
==> Searching for a previously deleted formula (in the last month)...
Error: 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.

怎么了?

推荐答案

我遇到了同样的问题,我能够通过运行医生命令并按照需要在那里更新的步骤来解决它.

I had the same issue and I was able to solve it by running the doctor command and follow the steps which need to be updated there.

我的 homebrew-core 不在 master 分支.

My homebrew-core was not at the master branch.

brew doctor 
git -C $(brew --repo homebrew/core) checkout master

就是这样.之后,我就可以运行 rbenv install 命令了.

And that's it. After that, I was able to run the rbenv install command.

这篇关于brew 找不到任何包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆