How to solve resolv.conf in ubuntu - failed removing file /etc/resolv.conf Operation not permitted

Published: 27 July 2024
on channel: Ambar Hasbiyatmoko
200
1

i want to change the content or remove file at /etc/resolv.conf, but getting this error:

readony option is set (add ! to override), /etc/resolv.conf E212: Can't open file for writing

and

rm: cannot remove '/etc/resolv.conf': Operation not permitted

----

resolution:
sudo chattr -i /etc/resolv.conf


Watch video How to solve resolv.conf in ubuntu - failed removing file /etc/resolv.conf Operation not permitted online without registration, duration hours minute second in high quality. This video was added by user Ambar Hasbiyatmoko 27 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 200 once and liked it 1 people.