Raveen Kumar

ChatGPT is getting better and better

I was facing some issues with by brew package manager in macOS.

@$ brew update --verbose
Checking if we need to fetch /opt/homebrew...
Checking if we need to fetch /opt/homebrew/Library/Taps/lencx/homebrew-chatgpt...
Fetching /opt/homebrew/Library/Taps/lencx/homebrew-chatgpt...
Fetching /opt/homebrew...
fatal: unable to access 'https://github.com/Homebrew/brew/': Failed to connect to github.com port 443 after 51 ms: Couldn't connect to server
fatal: unable to access 'https://github.com/lencx/ChatGPT.git/': Failed to connect to github.com port 443 after 51 ms: Couldn't connect to server
Updating /opt/homebrew...
branch 'master' set up to track 'origin/master'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.
Switched to and reset branch 'stable'
Current branch stable is up to date.
Checking if we need to fetch formula.jws.json...
Checking if we need to fetch cask.jws.json...
Checking if we need to fetch formula_tap_migrations.jws.json...
Checking if we need to fetch cask_tap_migrations.jws.json...
Error: Fetching /opt/homebrew failed!
Fetching /opt/homebrew/Library/Taps/lencx/homebrew-chatgpt failed!
Failed to download https://formulae.brew.sh/api/formula.jws.json!
Failed to download https://formulae.brew.sh/api/cask.jws.json!
Failed to download https://formulae.brew.sh/api/formula_tap_migrations.jws.json!
Failed to download https://formulae.brew.sh/api/cask_tap_migrations.jws.json!

Was not able to find solutions for it. But Apparently this is the fix.

git -C /opt/homebrew remote set-url origin https://github.com/Homebrew/brew.git

I spent like 15 mins on google and found no good answer, while ChatGPT fixed it in few mins.

#ai #posts