I've edited /etc/resolve.conf on my ubuntu 20.04 by mistake and it corrupted as below :
root@ubnt20srv-test-01:/etc# cat resolv.conf
cat: resolv.conf: No such file or directory
but the file exist:
root@ubnt20srv-test-01:/etc# ls -la | grep resolv.conf
lrwxrwxrwx 1 root root 39 Jul 31 2020 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
and I get this error when I want to reedit it with vim :
"resolv.conf"
"resolv.conf" E166: Can't open linked file for writing
Press ENTER or type command to continue
enter code here
I restarted VM but it didn't recreated. what should I do?