Homebrew / install

📥 Homebrew (un)installer
https://brew.sh
BSD 2-Clause "Simplified" License
2.15k stars 1.02k forks source link

Unable to install because a remote branch was renamed or deleted #843

Closed RobbyCBennett closed 5 months ago

RobbyCBennett commented 5 months ago

What you were trying to do (and why)

I tried to install using /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

What happened (include command output)

I couldn't install because a remote branch was renamed or deleted.

System and software information:

Command output

==> Updating Homebrew...
fatal: couldn't find remote ref refs/heads/master
Error: Fetching /opt/homebrew/Library/Taps/dart-lang/homebrew-dart failed!
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:d783cbeb6e6ef0d71c0b442317b54554370decd6fac66bf2d4938c07a63f67be
####################################################################################################################################################### 100.0%
==> Pouring portable-ruby-3.1.4.arm64_big_sur.bottle.tar.gz
Installing from the API is now the default behaviour!
You can save space and time by running:
  brew untap homebrew/core
  brew untap homebrew/cask
Updated 1 tap (leoafarias/fvm).
Error: Some taps failed to update!
The following taps can not read their remote branches:
  dart-lang/dart
This is happening because the remote branch was renamed or deleted.
Reset taps to point to the correct remote branches by running `brew tap --repair`
Failed during: /opt/homebrew/bin/brew update --force --quiet
  

What you expected to happen

I expected the installer to work.

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

Install using /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

MikeMcQuaid commented 5 months ago

Homebrew is already installed.

RobbyCBennett commented 5 months ago

It's installed for another user as a ZSH plugin, but it's not installed for the whole system or my user.

> brew
zsh: command not found: brew
> find / -name brew 2>/dev/null
/System/Volumes/Data/Users/OTHER_USER/.oh-my-zsh/plugins/brew
/Users/OTHER_USER/.oh-my-zsh/plugins/brew
MikeMcQuaid commented 5 months ago

==> Updating Homebrew...

This is running Homebrew. It is installed on your machine. If you need more help: ask in Homebrew/discussions. This is not a bug.