How do I install the Cisco Anyconnect VPN client?
I installed Cisco AnyConnect for Ubuntu(64) 12.04, but it failed. It can be installed on Ubuntu 10.10(64).
The error log
Installing Cisco AnyConnect VPN Client ...
Extracting installation files to /tmp/vpn.teuSIr/vpninst096243274.tgz...
Unarchiving installation files to /tmp/vpn.teuSIr...
Starting the VPN agent...
/opt/cisco/vpn/bin/vpnagentd: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
When I meet that,
locate libxml2.so.2
/usr/lib/x86_64-linux-gnu/libxml2.so.2
/usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
So I create symbol link libxml2.so.2
in /user/lib
and after I do:
Installing Cisco AnyConnect VPN Client ...
Extracting installation files to /tmp/vpn.5cz4FV/vpninst001442979.tgz...
Unarchiving installation files to /tmp/vpn.5cz4FV...
Starting the VPN agent...
/opt/cisco/vpn/bin/vpnagentd: error while loading shared libraries: libxml2.so.2: wrong ELF class: ELFCLASS64
I ensure that there exist lib32 runtime lib on my device.
How can I fix this?
If you don't need the "official" Cisco AnyConnect VPN software, I highly recommend installing the "network-manager-openconnect-gnome" package in the Ubuntu Repository. It uses OpenConnect which is an open source client for AnyConnect.
Anyhow, that package allows for you to configure and manager your AnyConnect VPN connections through the normal network manager.
I have been using that to connect to my work VPN for the past few months and it has been working great!
You can find the package in the Ubuntu Software Center or Synaptic by searching for "OpenConnect."
If you wish to install it via the command-line, you can do so with: sudo apt-get install network-manager-openconnect-gnome
This adds an option to Network Connections. When you choose to add a connection, there'll be a new option under VPN Connections to add a "Cisco AnyConnect Compatible VPN (openconnect)". You can then connect to the VPN through the networks applet (in the system tray).
Use openconnect! quite easy!
-
First run command below to active th TUN module:
sudo /sbin/modprobe tun
-
Install OpenConnect:
sudo apt-get install openconnect
-
Connect to VPN, run:
sudo openconnect yourvpn.example.com
Try this link it helped me : http://ubuntuhandbook.org/index.php/2014/11/connect-cisco-anyconnect-vpn-ubuntu/
-
Install some VPN plug-ins for Network Manager:
sudo apt-get install network-manager-pptp network-manager-vpnc network-manager-openvpn
If prompted for your password, type it, and press Enter.
If you're told that a package “is already the newest version,” ignore it and continue with the next command.
If asked to “continue [Y/n],” press Y, followed by Enter.
-
Open the connections settings dialogue, go to the VPN tab and add a new connection:
-
Select “Cisco AnyConnect”: