Warning: No available formula with the name "mkcert" - macos

Im using a M1 mac and Im trying to install mkcert using brew,
The command that I use is:
brew install mkcert
This is the error that I get:
brew install mkcert
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "mkcert".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
What am I doing wrong?

What I ended up doing is resolving this part:
fatal: Could not resolve HEAD to a revision
by following the most voted comment on this thread:
https://github.com/Homebrew/discussions/discussions/1512
this is the solution the suggested:
rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core

Related

Boost on OSX via Homebrew

I try to install boost using homebrew, and when i try, this happens:
admin:~ Admin$ brew install boost
Warning: No available formula with the name "boost".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Specifing version doesnt help either:
```bash
admin:~ Admin$ brew install boost#1.58
Warning: No available formula with the name "boost#1.58".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
you seemed to join a WiiU Homebrew discord for help, but imma still try to help you with your issue.
Does brew install boost#1.79 work for you?
If it still returns the same Issue, please try following things:
brew update after that, try installing boost again.
(Only do if #1 didnt work) brew update-reset
after that try installing boost again.
[Note: this will destroy all your uncommitted or committed changes in any Homebrew repository]
(do this if the other 2 failed) git -C $(brew --repo homebrew/core) checkout -- Formula/boost.rb followed by trying to install boost again.
Hope this helps
Apparently rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core; brew update fixed it!

brew install lua#5.1: "No available formula for the name "Lua#5.1""

Installing Lua#5.1 using brew install lua#5.1 (as stated in the website)
https://formulae.brew.sh/formula/lua#5.1
Results in an error for me on macOs terminal.
brew install lua#5.1
Warning: No available formula with the name "lua#5.1".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
I have used brew update, and I have reinstalled brew, but I still get the same error.
brew install coreutils fixed it for me

Unable to install wget

My MacBook Air was equipped with macOS Mojave Version 10.14.6.
I cannot install wget even if I have checked brew version.
brew --version
The output is :
Homebrew 3.3.13
Homebrew/homebrew-core (no Git repository)
Homebrew/homebrew-cask (git revision fb6ec06d8b; last commit 2022-01-31)
When I tried to install wget:
brew install wget
This is the result:
Warning: No available formula with the name "ca-certificates".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Running `brew update --preinstall`...
Error: No formulae found in taps.
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "wget".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
This problem has bothered me for a long while...
Eventually, I solved this problem by running the following code:
brew update-reset
brew install wget
I hoped this may help others.
Problem could be 'Homebrew/homebrew-core not tapped properly'. Executing these two commands resolved the issue for me.
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core

unable to install maven on macbook pro (fatal: Could not resolve HEAD to a revision)

trying to install maven using brew install maven
getting bellow error
Running `brew update --preinstall`...
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "maven".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Execute the following commands:
brew doctor
git -C $(brew --repo homebrew/core) checkout master

how to install gcc 4.4 on mac

I tried using brew to install gcc 4.4 on mac using brew install gcc44 but i got this error
Error: No available formula with the name "gcc44"
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...

Resources