8
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

brew コマンドで unknown or unsupported macOS version: :dunno (MacOSVersionError) がでました

Posted at

brew コマンドを実行したら unsupported macOS version というエラーがでました。

brewコマンド
% brew doctor
Traceback (most recent call last):
	11: from /usr/local/Homebrew/Library/Homebrew/brew.rb:31:in `<main>'
	10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:31:in `require_relative'
	 9: from /usr/local/Homebrew/Library/Homebrew/global.rb:80:in `<top (required)>'
	 8: from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'

略

	 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:28:in `version'
	 2: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:33:in `from_symbol'
	 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:33:in `fetch'
/usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:33:in `block in from_symbol': unknown or unsupported macOS version: :dunno (MacOSVersionError)

brew コマンドが古くなっているかもしれません。
brew upgradebrew doctor でも失敗するので困りました。

brew update-reset する

brew update-reset はヘルプによるとすべてのリポジトリを最新にしてくれるそうです。

brew update-reset

こちらを実行の後、brew doctor ほかコマンドも実行できるようになりました。
やったね(☝ ՞ਊ ՞)☝

参考

Homebrew fails on MacOS Big Sur - Stack Overflow
https://stackoverflow.com/questions/64821648/homebrew-fails-on-macos-big-sur

8
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?