Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)

I tried to upgrade with Brew

$ brew upgrade stripe/stripe-cli/stripe

I got:

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
    arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.

AS suggested, I tried

$ arch -arm64 brew install

But got:

Error: Invalid usage: This command requires at least 1 formula or cask argument.

I tried installing Rosetta 2 according to this tutorial

$ /usr/sbin/softwareupdate --install-rosetta --agree-to-license

But I got:

Installing Rosetta 2 on this system is not supported.
like image 841
Dashiell Rose Bark-Huss Avatar asked Jan 20 '26 19:01

Dashiell Rose Bark-Huss


2 Answers

Seems homebrew has to be used like this from now on:

arch -arm64 brew upgrade
like image 80
binaryanomaly Avatar answered Jan 23 '26 06:01

binaryanomaly


In my case, I switched Terminal to run with Rosetta 2 in the early days of Apple Silicon and forgot about it.

Switching it back got homebrew working again.

If this is the case for you, do this:

  • Go to Finder → Applications → Utilities.
  • CMD+I on Terminal
  • Deselect "Open with Rosetta"
like image 33
heyfrank Avatar answered Jan 23 '26 06:01

heyfrank