Unable to install Homebrew itself, maybe breaks at deleted git branch


(Greg White) #1

Hi everyone,

On MacOS 14.1 with Xcode 10.1 command line tools:

“brew” command was not responsive, so decided to delete and reinstall:

  sudo rm -rf /usr/local/Homebrew/
  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Above ruby execution of install script proceeds, until wait-forever at this line:

  • [new tag] 1.8.2 -> 1.8.2
  • [new tag] 1.8.3 -> 1.8.3
  • [new tag] 1.8.4 -> 1.8.4
    HEAD is now at 30c90dcc3 Merge pull request #5359 from claui/tls-coming-home

Investigating pull request 5359 [1] it seems that branch may be deleted. It says claui deleted the claui:tls-coming-home branch [a day ago]
(https://github.com/Homebrew/brew/pull/5359#event-1993618334)

[1] https://github.com/Homebrew/brew/pull/5359


(Sean Molenaar) #2

A pull request merges the content into brew so the original can be delete after without any issues.
How did you delete homebrew? I suspect some parts might be left hanging around and are causing issues.


(Greg White) #3

Thanks very much Sean. You were right, the git merge itself wasn’t the cause of the wait-forever. The git message is just the last thing that was printed. Executing the lines of the ruby install script by hand revealed that all the git worked fine. The line that never completes is the /usr/local/bin/brew update --force

Cheers, Greg