7

Having a bit of issue restoring my ubuntu box

When I start it I get the following error

Failed to start Clean up any mess left by 0dns-up.....dns-clean.service"

When booting into recovery mode > root and attempting to modify the resolv.conf file I get no such file or directory when trying to save changes.

Unable to install any packages or run apt-get update/install -f etc (no internet access)

Appreciate any help.

Cheers

Hex02
  • 71
  • 1
    Two things: 1) did you enable network in recovery mode, 2) did you remount filesystem as rw? – George Udosen May 04 '17 at 08:22
  • 1
    Please show us the full command you use to open the file (resolv.conf). – mook765 May 04 '17 at 08:38
  • No, you don't manually edit /etc/resolv.conf. If you're missing that file all together, it's just a symlink like ls -al /etc/resolv.conf shows it as resolv.conf -> ../run/resolvconf/resolv.conf. You can recreate it if you have to with a ln -s command. – heynnema May 04 '17 at 16:09
  • Yes I tried to, but it quickly reverts me back to main menu and mentioned no directory or file "resolve.conf"

    That's what I later figured was to mount the filesystem

    which I did using mount -o remount, rw /

    No, I wasn't missing it but I figured its because I hadn't mounted / it was a read-only file and therefore unable to save changes which was to add nameserver address.

    – Hex02 May 05 '17 at 01:31

0 Answers0