linfeee wrote:
You mean homebrew lock my hosts file?
I have no idea what Homebrew does. I just know that when people come to this forum complaining about some basic, 30 year-old command line technique suddenly doesn't work, Homebrew is always involved. I mean every single single.
I think the most likely explanation is that those Homebrew binaries like bash are not working properly after your upgrade to Sonoma. A system or Xcode upgrade is often the trigger for a catastrophic Homebrew failure. l
Unfortunately, I have no idea how to fix it. In most cases, people install Homebrew because they don't know their way around the command line environment. So when that breaks, they are helpless to fix it. All they can do is erase the hard drive and reinstall the operating system. That will work, but you have to remember to be careful during the restore from Time Machine. If you just restore everything, it will restore everything broken again. You have to restore only user accounts and user files. Do not restore any apps, software, system settings, or "other files". You will need to manually reinstall any 3rd party apps that you really need.
I strongly recommend checking with each developer to ensure that said 3rd party apps work on Sonoma. Some will say "yes". Some will say "no". Some won't respond at all. Some will ask you "what is this MacOs X Sonoma?" Only reinstall software made people who respond with a "yes".