# Fix the Local By Flywheel Error on Mac When Trying To Update the Hosts File

'https://travismedia.gumlet.io/src/assets/images/2024/10/local-by-flywheel-hosts-file-antivirus-error.jpg';

Are you trying to use Local By Flywheel on a Mac M2 or M3 and you get the below error when creating a local site?

"Uh-oh! Could not update hosts file. Local ran into a problem when trying to update the hosts file. Please ensure that the hosts file is not locked by anti-virus."

<Image class="mx-auto max-w-md" src={error} alt="local by flywheel error with hosts permission issue" />

Well, I've done the homework for you and have the solution.

No, it's not your antivirus.

And please DO NOT open up your hosts file to the world.

Here's the fix.

**First**, close Local.

**Second**, run this command in the terminal:

```bash
softwareupdate --install-rosetta --agree-to-license
```

[Apple says](https://support.apple.com/en-us/102527), "Rosetta 2 enables a Mac with Apple silicon to use apps built for a Mac with an Intel processor."

**Finally**, relaunch Local.

Voila, you are able to create a site again.