Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been struggling to get cisco vpn working on an ubuntu 10.04.3 server with a 2.6.32-35-server kernel. i followed the lamnk.com tutorial.

i installed my linux kernel sources this way apt-get source linux-image-$(uname -r)

after extracting i set the path of the linux sources to /usr/src/linux-source-2.6.32

during compilation it complained about :

Building modules, stage 2.
MODPOST 1 modules
/bin/sh: scripts/mod/modpost: not found
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.32'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

so i run make modules_prepare from /usr/src/linux-source-2.6.32 to fix it. the installation completed successufully but /etc/init.d/vpnclient_init start

complained :

Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting '/lib/modules/2.6.32-35-server/CiscoVPN/cisco_ipsec.ko': -1 Invalid module format Failed (insmod)

doing moninfo returns :

 modinfo /lib/modules/2.6.32-35-server/CiscoVPN/cisco_ipsec.ko
 filename:       /lib/modules/2.6.32-35-server/CiscoVPN/cisco_ipsec.ko
 license:        Proprietary
 vermagic: SMP mod_unload modversions 

the vermagic and uname which is 2.6.32-35-server are differents

Now am stuck how to resolve it? my options are :

1 : unistall cisco vpn and restart but how to?
2 : fix the install but how to?

I need help, I will be extremely grateful if anybody can show some directions. thank you


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.