0

I can't edit /etc/resolv.conf, error: permission denied I upgraded from 16.04 to 16.10 and keyboard & mouse stopped working, following ubuntu KB asks to mount chroot, chroot mounted but dns not working, and can't edit resolv.conf Please help how to solve network connectivity when booted from a live cd and mounted to chroot.

2 Answers2

1

/etc/resolv.conf lists the name servers to query when doing a DNS lookup. It requires sudo privileges to edit.

sudo nano /etc/resolv.conf   

nano is a simple text editor.

The resolver has nothing to do with keyboard and mouse function.

jones0610
  • 2,514
0

No edit because it is a symbolic link. Default resolv.conf:

  • /run/systemd/resolve/stub.resolv.conf
  • /run/systemd/resolve/resolv.conf

Delete symbolic link, and create a new one.
sudo nano /etc/resolv.conf

Sample content: nano /etc/resolv.conf

nameserver ::1
nemaserver 127.0.0.1
options edns0