# Unable to update host files

**URL:** <https://community.localwp.com/t/unable-to-update-host-files/42087>\
**Category:** Support\
**Tags:** windows-10\
**Created:** [March 25, 2024, 12:16am UTC](https://community.localwp.com/t/unable-to-update-host-files/42087 "2024-03-25T00:16:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakgataussie](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bakgataussie](https://community.localwp.com/u/bakgataussie)\
**Post date:** [March 25, 2024, 12:16am UTC](https://community.localwp.com/t/unable-to-update-host-files/42087/1 "2024-03-25T00:16:02Z")

</div>

### What issue or error are you experiencing?

Local ran into a problem when trying to update the hosts file. It says to ensure the hosts file is not locked by anti-virus.

 ![WPlocal error3 - 25.03.2024](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/f/e/fec9a17a6e07d1c43f50fea82c46bcb2a52fc5d1.png)

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I stopped the windows anti-virus and clicked ‘fix it’ on screenshot 'WPLocal error2 - 25.03.2024 however same error came up. I then installed WP Local on another drive on the same computer but the same has happened, see screenshot ‘WPLocal error - 25.03.2024’.

 ![WPlocal error2 - 25.03.2024](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/c/4/c46b433babf3a26a0171567dd0d16eb0ca7aece6.png)  
 ![WPlocal error - 25.03.2024](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/3/c/3c0ba677c1ab18e8cc3d2f7687881c933f3fb992.png)

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**  
Windows 10

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))  
[local-logs.zip](https://community.localwp.com/uploads/short-url/wpNUPH0Z4AwzRSnmPYQ0TR9BgJb.zip) (4.9 KB)

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [March 26, 2024, 10:08am UTC](https://community.localwp.com/t/unable-to-update-host-files/42087/2 "2024-03-26T10:08:09Z")

</div>

It looks like security software is still preventing Local from reading and writing to files, @bakgataussie.

If you disabled the software or allowed Local to run, you may need to restart Local before it takes effect.

If you allowed Local, restarted Local and continue to see the errors you reported, something may still be blocking Local. Some guides here that may help:

- [Help! I'm running into an EPERM error with the hosts file on Windows](https://community.localwp.com/t/help-im-running-into-an-eperm-error-with-the-hosts-file-on-windows/3508)
- [Unable to update Hosts file (with Kaspersky)](https://community.localwp.com/t/unable-to-update-hosts-file-with-kaspersky/41902)
- [How to run Local 5.0.7 + Windows 10 + Antivirus Software (Kaspersky)](https://community.localwp.com/t/how-to-run-local-5-0-7-windows-10-antivirus-software-kaspersky/15290)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [June 24, 2024, 10:08am UTC](https://community.localwp.com/t/unable-to-update-host-files/42087/3 "2024-06-24T10:08:15Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
