This is usually caused by the hosts file being set to read-only or locked by anti-virus.
1. Remove Read-only Attribute
Go to C:\Windows\System32\drivers\etc
Right-click on the hosts file and go to “Properties”
Uncheck “Read-only”
Click “Apply”
Re-open Local
Screenshot
[06 AM]
2. Anti-Virus/Internet Security
Avira
See https://answers.avira.com/en/question/avira-blocks-hosts-file-what-can-i-do-90
Kaspersky Total Security
Open Kaspsersky Total Security
Go to “More Tools”
[Step%201]
Go …
I’ve tried performing the suggested actions found in the link you sent me ↑, but to no avail. When I try to create a site, it still shows the same error messages.