Ubuntu – Resolvconf -u gives the error “resolvconf: Error: /etc/resolv.conf must be a symlink”

networkingresolv.conf

I use resolvconf to have static DNS servers set in /etc/resolv.conf. However, when I run sudo resolvconf -u to update /etc/resolv.conf with new static information, I get the error 'resolvconf: Error: /etc/resolv.conf must be a symlink'. How can I fix this?

Best Answer

  • It's easy to fix. Just open a terminal and run the following commands:

    sudo rm /etc/resolv.conf
    sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
    sudo resolvconf -u
    
  • Related Question