Error
~ $ brew -v
Traceback (most recent call last):
11: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `<main>'
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'
9: from /usr/local/Homebrew/Library/Homebrew/global.rb:37:in `<top (required)>'
8: from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
7: from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in `<top (required)>'
5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in `<module:OS>'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in `prerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in `version'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in `new'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:26:in `initialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in `initialize': Version value must be a string; got a NilClass () (TypeError)
brew update-reset
~ $ brew update-reset
==> Fetching /usr/local/Homebrew...
remote: Enumerating objects: 87879, done.
remote: Counting objects: 100% (10801/10801), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 87879 (delta 10776), reused 10791 (delta 10772), pack-reused 77078
Receiving objects: 100% (87879/87879), 30.60 MiB | 15.47 MiB/s, done.
Resolving deltas: 100% (64804/64804), completed with 1537 local objects.
From https:
* [new branch] less-agressive-core-tap -> origin/less-agressive-core-tap
b0d3414fd..e76c55e18 master -> origin/master
* [new branch] setup-homebrew-test -> origin/setup-homebrew-test
.
.
.
* [new tag] 3.6.9 -> 3.6.9
==> Resetting /usr/local/Homebrew...
Checking out files: 100% (3457/3457), done.
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
remote: Enumerating objects: 680553, done.
remote: Counting objects: 100% (680553/680553), done.
remote: Compressing objects: 100% (184856/184856), done.
remote: Total 675888 (delta 501061), reused 665711 (delta 490937), pack-reused 0
Receiving objects: 100% (675888/675888), 255.30 MiB | 14.11 MiB/s, done.
Resolving deltas: 100% (501061/501061), completed with 4603 local objects.
From https:
57516a41b0..0af7674262 master -> origin/master
==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Checking out files: 100% (6841/6841), done.
Branch 'master' set up to track remote branch 'master' from 'origin'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions...
remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-versions/' not found
==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.
brew -v
~ $ brew -v
Homebrew 3.6.16-97-ge76c55e
Homebrew/homebrew-core (git revision 0af7674262; last commit 2022-12-31)