Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How to resolve “error loading libxml2.so.2” when installing Cisco AnyConnect VPN?

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?

share|improve this question
That ELFCLASS64 seems to suggest you're using a 64bit software on a 32bit OS. Did yuo make sure you're using the 32bit edition of the software? – The Lord of Time Jun 22 '12 at 16:48
yes, it is really 32bit ediation software. – chuck Jun 22 '12 at 17:02
i used ubuntu-12.04-desktop-amd64.iso installed. Linux chuck 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux file /opt/cisco/vpn/bin/vpnagentd /opt/cisco/vpn/bin/vpnagentd: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped From the above info, i confirm that the tool is 32bit edition software, and my os is 64bit. – chuck Jun 22 '12 at 17:07
i make a problem, i rebuilt lib32-libxml2, and relink tha share lib. Then i found is can be install successfully. but it still can work normally. that was strage, From the dmesg, i found vpn module already load. – chuck Jun 22 '12 at 17:31
i try to manually run vpnui, found some errors.chuck@chuck:/opt/cisco/vpn/bin$ ls manifesttool vpn vpnagentd vpndownloader vpndownloader.sh vpnui vpn_uninstall.sh chuck@chuck:/opt/cisco/vpn/bin$ ./vpnui ./vpnui: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory so i build lib32-atk for that. – chuck Jun 22 '12 at 17:40

marked as duplicate by Eliah Kagan, izx, Jorge Castro, Jacob Johan Edwards, Call me V Sep 3 '12 at 21:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

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

share|improve this answer
I use this too in place of the cisco software, but it's really just a workaround. My University is doing an update of cisco this week and I'm a little antsy it will break the compatability – Ian B. Aug 8 '12 at 12:32

I encountered a similar issue earlier. I observed that vpnagentd does not load because of libatk1 and vpnui does not load because of libxml2. Installing the 32-bit versions of these libraries resolves the issues. You should install ia32-libs to resolve the issue using

sudo apt-get update
sudo apt-get install ia32-libs

This should resolve the issue for you on Ubuntu 64 bit versions. I have tried it on Ubuntu 11.10 and Ubuntu 12.04.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.