Unable to save /private/etc/hosts Error: /private/etc/hosts is readonly
mac os : 11.5.2(20G95)
sublime Text : 41113
Unable to save /private/etc/hosts Error: /private/etc/hosts is readonly
Use sublime Text app to edit the hosts file (/private/etc/hosts), and an error prompt window like this appears. Nothing like this happened a few days ago. After using the restore system, it returned to normal, but the same problem occurred a few days later.
Does anyone have the same problem?
How do you solve such problems?
Currently, only sudo vim can be used to edit, but this is a bit inconvenient for me.
MacBook Pro 15″, macOS 10.12