Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: VPNC stopped working - resolvconf error

  1. #1
    Join Date
    Dec 2007
    Beans
    121

    VPNC stopped working - resolvconf error

    This is the error Im getting when I try to VP in:

    resolvconf: Error: /etc/resolv.conf must be a symlink

    so even tho Im "connected" Im not actually connected, so I cant connect to my network shares.

  2. #2
    Join Date
    Dec 2007
    Beans
    121

    Re: VPNC stopped working - resolvconf error

    bump!

    can anyone help me?

  3. #3
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: VPNC stopped working - resolvconf error

    Quote Originally Posted by rugbert View Post
    bump!

    can anyone help me?
    VPNC should be creating this itself, but if not, try:

    Code:
    sudo ln /etc/resolvconf/run/resolv.conf  /etc/resolv.conf
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  4. #4
    Join Date
    Jun 2006
    Beans
    2

    Re: VPNC stopped working - resolvconf error

    This is a problem for me too after doing the latest round of updates. The problem isn't that /etc/resolv.conf doesn't exist, the problem is that it's being created/overwritten as an actual file (rather than symlink) each time you start vpnc. I created the symlink (as suggested above) and it was removed and overwritten by a new copy of resolv.conf when I launched vpnc.

    The 'vpnc' process remains running after the error but doesn't seem to actually be connected.

  5. #5
    Join Date
    Jun 2006
    Beans
    2

    Re: VPNC stopped working - resolvconf error

    dcstar was nearly correct in his advice. I fixed this by removing /etc/resolv.conf and then:

    ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf

  6. #6
    Join Date
    Jan 2009
    Location
    St. Gall, Switzerland
    Beans
    21
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VPNC stopped working - resolvconf error

    Actually, for me it required to follow the following steps (I learned from launchpad, bug #324233):

    Before:

    $ ls -l /etc/resolv.conf
    -rw-r--r-- 1 root root 30 2009-08-16 13:38 /etc/resolv.conf

    $ sudo mkdir /etc/postfix
    $ sudo touch /etc/postfix/main.cf
    $ sudo rm /etc/resolv.conf
    $ sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
    $ ls -l /etc/resolv.conf
    lrwxrwxrwx 1 root root 31 2009-08-16 13:42 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf
    $ sudo reboot

    After:

    $ ls -l /etc/resolv.conf
    lrwxrwxrwx 1 root root 31 2009-08-16 13:42 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf

    Hope it helps!

  7. #7

    Re: VPNC stopped working - resolvconf error

    Quote Originally Posted by onthenarrowpath View Post
    Actually, for me it required to follow the following steps (I learned from launchpad, bug #324233):

    Before:

    $ ls -l /etc/resolv.conf
    -rw-r--r-- 1 root root 30 2009-08-16 13:38 /etc/resolv.conf

    $ sudo mkdir /etc/postfix
    $ sudo touch /etc/postfix/main.cf
    $ sudo rm /etc/resolv.conf
    $ sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
    $ ls -l /etc/resolv.conf
    lrwxrwxrwx 1 root root 31 2009-08-16 13:42 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf
    $ sudo reboot

    After:

    $ ls -l /etc/resolv.conf
    lrwxrwxrwx 1 root root 31 2009-08-16 13:42 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf

    Hope it helps!
    That worked for me as well. Finally got vpnc working and can now say buh-bye to ciscovpn
    http://tllts.org - The Linux Link Tech Show
    http://mythtvcast.com - The MythTVCast

  8. #8
    Join Date
    Jul 2006
    Beans
    11

    Re: VPNC stopped working - resolvconf error

    thanks onthenarrowpath. your instructions worked for me.

  9. #9
    Join Date
    Jan 2009
    Location
    St. Gall, Switzerland
    Beans
    21
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VPNC stopped working - resolvconf error

    Glad I could help .

  10. #10
    Join Date
    Jan 2007
    Beans
    5

    Re: VPNC stopped working - resolvconf error

    I have the very same problem and your fix is working. I restart my system and everything is fine, BUT after the next restart my symlink is gone and nothing is working!!!

    Does anyone know how this can be? Why do I lose my symlink?

    Best regards
    JohnTwenty

    BTW: Ubuntu 9.10 on a Asus EEEPC 1005

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •