Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to run any brew command fails on m1 Mac with macOS monterey #11668

Closed
2 tasks done
cliophate opened this issue Jul 7, 2021 · 1 comment
Closed
2 tasks done
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@cliophate
Copy link

brew config output

Traceback (most recent call last):
	11: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `<main>'
	10: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `require_relative'
	 9: from /opt/homebrew/Library/Homebrew/global.rb:80:in `<top (required)>'
	 8: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /opt/homebrew/Library/Homebrew/os.rb:7:in `<top (required)>'
	 5: from /opt/homebrew/Library/Homebrew/os.rb:43:in `<module:OS>'
	 4: from /opt/homebrew/Library/Homebrew/os/mac.rb:60:in `prerelease?'
	 3: from /opt/homebrew/Library/Homebrew/os/mac.rb:28:in `version'
	 2: from /opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `from_symbol'
	 1: from /opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `fetch'
/opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `block in from_symbol': unknown or unsupported macOS version: :dunno (MacOSVersionError)

brew doctor output

Traceback (most recent call last):
	11: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `<main>'
	10: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `require_relative'
	 9: from /opt/homebrew/Library/Homebrew/global.rb:80:in `<top (required)>'
	 8: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /opt/homebrew/Library/Homebrew/os.rb:7:in `<top (required)>'
	 5: from /opt/homebrew/Library/Homebrew/os.rb:43:in `<module:OS>'
	 4: from /opt/homebrew/Library/Homebrew/os/mac.rb:60:in `prerelease?'
	 3: from /opt/homebrew/Library/Homebrew/os/mac.rb:28:in `version'
	 2: from /opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `from_symbol'
	 1: from /opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `fetch'
/opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `block in from_symbol': unknown or unsupported macOS version: :dunno (MacOSVersionError)

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

No matter what command I run, they all fail and show the same error, as added above.

What happened (include all command output)?

Running /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" gives me error:

==> Checking for `sudo` access (which may request your password).
Password:
==> You are using macOS 12.0.
==> We do not provide support for this pre-release version.
This installation may not succeed.
After installation, you will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew\'s GitHub,
Twitter or IRC. You are responsible for resolving any issues you experience
while you are running this pre-release version.
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R cliophate:admin /opt/homebrew
==> Downloading and installing Homebrew...
/bin/bash: line 157: 86848 Killed: 9               "$@"
Failed during: git init -q

Running any brew command gives me

Traceback (most recent call last):
	11: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `<main>'
	10: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `require_relative'
	 9: from /opt/homebrew/Library/Homebrew/global.rb:80:in `<top (required)>'
	 8: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /opt/homebrew/Library/Homebrew/os.rb:7:in `<top (required)>'
	 5: from /opt/homebrew/Library/Homebrew/os.rb:43:in `<module:OS>'
	 4: from /opt/homebrew/Library/Homebrew/os/mac.rb:60:in `prerelease?'
	 3: from /opt/homebrew/Library/Homebrew/os/mac.rb:28:in `version'
	 2: from /opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `from_symbol'
	 1: from /opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `fetch'
/opt/homebrew/Library/Homebrew/os/mac/version.rb:33:in `block in from_symbol': unknown or unsupported macOS version: :dunno (MacOSVersionError)

What did you expect to happen?

Either update or install homebrew. Or anything else for that matter.

Step-by-step reproduction instructions (by running brew commands)

1. Open terminal
2. Run any commands starting with brew.
3. Failure
@cliophate cliophate added the bug Reproducible Homebrew/brew bug label Jul 7, 2021
@MikeMcQuaid
Copy link
Member

==> You are using macOS 12.0.
==> We do not provide support for this pre-release version.

@github-actions github-actions bot added the outdated PR was locked due to age label Aug 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

2 participants