0

I have Ubuntu 16.04 and I accidentally removed /run/resolvconf/ and can't install it using apt-get because I get a fetch error. Is there any way to get it back? I am not too knowledgeable of this so I am aware that I am missing some other details that may be needed to further assess the problem. However, I don't know what they are. Thanks in advance for the help!

11
  • There are no file in Ubuntu called /resolvconf/resolv.conf .. are you thinking of /etc/resolv.conf ?
    – Soren A
    Jul 20, 2017 at 10:29
  • that file is there but when I try to open it, I get an error. It says that the file is broken because its target file does not exist. Jul 20, 2017 at 10:30
  • Sorry, I typed this up without my computer in front of me. I will fix all mistakes as soon as I have access to it again. Jul 20, 2017 at 10:32
  • I concur with the first comment, there's no such file.
    – user692175
    Jul 20, 2017 at 10:32
  • Perhaps you removed the symbolic link to /run/resolvconf/resolv.conf? Jul 20, 2017 at 11:00

1 Answer 1

0

Problem fixed!

On another computer, I downloaded this resolvconf package, copied it onto a USB and then from the USB to my broken machine. Then I installed those packages using: sudo dpkg -i /path/to/deb/file followed by sudo apt-get install -f. Then I used sudo resolvconf -u and then sudo dpkg-reconfigure resolvconf.

I do not know what the commands sudo resolvconf -u and sudo dpkg-reconfigure resolvconf do, but they worked for me!

If anyone cares to explain, I am eager to hear.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .