resolvconf: Error: /etc/resolv.conf isn’t a symlink, not doing anything

If we get this error in Ubuntu while restarting network service.

Here /etc/resolv.conf is a file move it to /run/resolvconf/resolv.conf.


# sudo mv /etc/resolv.conf /run/resolvconf/resolv.conf

Then create the symlink using ln -s.

# sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf

Then restart the network service

# sudo /etc/init.d/networking restart

Or there is an Alternative way to reconfigure the network service by issuing following command.

# sudo dpkg-reconfigure resolvconf

This will be solution for the titled error.

Leave a Comment

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!