Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old June 21st, 2009   #1
rugbert
A Carafe of Ubuntu
 
Join Date: Dec 2007
Beans: 88
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.
rugbert is offline   Reply With Quote
Old July 3rd, 2009   #2
rugbert
A Carafe of Ubuntu
 
Join Date: Dec 2007
Beans: 88
Re: VPNC stopped working - resolvconf error

bump!

can anyone help me?
rugbert is offline   Reply With Quote
Old July 3rd, 2009   #3
dcstar
Ubuntu addict and loving it
 
Join Date: Feb 2005
Location: Melbourne, Australia
Beans: 7,838
Ubuntu 9.04 Jaunty Jackalope
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.

The Forum search function is useful for immediate help (give it a try).
Please mark your thread as "Solved" (using the Thread Tools) when appropriate.
dcstar is offline   Reply With Quote
Old July 7th, 2009   #4
jorvis
First Cup of Ubuntu
 
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.
jorvis is offline   Reply With Quote
Old July 7th, 2009   #5
jorvis
First Cup of Ubuntu
 
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
jorvis is offline   Reply With Quote
Old September 22nd, 2009   #6
onthenarrowpath
5 Cups of Ubuntu
 
Join Date: Jan 2009
Location: Zurich, Switzerland
Beans: 15
Ubuntu 9.10 Karmic Koala
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!
__________________
On Lenovo T500 - Intel Cuore 2 Duo P8700 (2.53 Mhz) - 2048 MB RAM.
onthenarrowpath is offline   Reply With Quote
Old September 22nd, 2009   #7
hackmeister
Just Give Me the Beans!
 
Join Date: Apr 2006
Beans: 62
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
hackmeister is offline   Reply With Quote
Old October 16th, 2009   #8
fatsheldon
First Cup of Ubuntu
 
Join Date: Jul 2006
Beans: 11
Re: VPNC stopped working - resolvconf error

thanks onthenarrowpath. your instructions worked for me.
fatsheldon is offline   Reply With Quote
Old October 19th, 2009   #9
onthenarrowpath
5 Cups of Ubuntu
 
Join Date: Jan 2009
Location: Zurich, Switzerland
Beans: 15
Ubuntu 9.10 Karmic Koala
Re: VPNC stopped working - resolvconf error

Glad I could help .
__________________
On Lenovo T500 - Intel Cuore 2 Duo P8700 (2.53 Mhz) - 2048 MB RAM.
onthenarrowpath is offline   Reply With Quote
Old 3 Weeks Ago   #10
JohnTwenty
First Cup of Ubuntu
 
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
JohnTwenty is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:07 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry