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 the following command.

# sudo dpkg-reconfigure resolvconf

 

This will be the solution for the titled error.

Was this answer helpful? 0 Users Found This Useful (0 Votes)