I deleted both the resolvconf
folder and the resolv.conf
file in /etc
by mistake, assuming that resolvconf was causing UCK to fail. Now the application has upgraded, fixing the issue, but it says no file named resolv.conf in /etc
.
What it says is correct because I deleted those files. Is there any way to recreate the files or restore from another location?
You could reinstall resolvconf to restore the default configuration:
Another idea would be remove "resolvconf" and then install:
If
resolvconf -u
shows the WARNING that/etc/resolv.conf
is not a symbolic link to/run/resolvconf/resolv.conf
then just backup that resolv.conf and make the symbolic link:Try this:
add:
nameserver 192.168.x.x (check your
ifconfig
output for the correct address)then
The accepted answer did not work for me. After reinstalling
resolvconf
, the system would completely wipe myresolv.conf
file after each reboot.To fix this, I had to reinstall the
network-manager
andlibnss-resolve
packages in addition toresolvconf
.Manually add a nameserver to resolve.conf (this is so you can fetch packages from the Ubuntu repos):
nameserver 8.8.8.8
to the file.Reinstall the
network-manager
,libnss-resolve
, andresolvconf
packages:Have you emptied your trash, if not, you can restore from trash.