Installing Cisco AnyConnect VPN Client on Ubuntu 18.04 | 16.04

Cisco AnyConnect VPN software allows remote users and employees to securely connect to a Cisco VPN gateway running in an enterprise environment..

Employees use Cisco AnyConnect Secure Mobility Client to establish connectivity to a Cisco SSL VPN server, and if authentication is approved, the connected users or employees are grant access to internal resources..

This is a widely used and popular VPN server within enterprises and if you’re a Linux user who need help installing and using AnyConnect, this brief tutorial is going to show you how…

It shows you how to download and install AnyConnect using Ubuntu 18.04 or 16.04 desktop computers…

When you’re ready to install AnyConnect, follow the steps below:

This first thing you need to be aware of is not everyone can download Cisco AnyConnect VPN client… The software is available to customers with active AnyConnect Apex, Plus or VPN Only term/contracts..

You system / network administrator(s) may have to get login to Cisco’s portal and download the software for you… or provide you login to get in to the portal..

AnyConnect download location is at the link below:

https://software.cisco.com/download/home/283000185

Step 1: Install Prerequisites

Some packages will need to be install prior to install AnyConnect… Do that, run the commands below:

sudo apt-get update
sudo apt-get install lib32z1 lib32ncurses5

Step 2: Install AnyConnect VPN Client

After installing the packages above, go and download AnyConnect file from it’s Download location

Once you have downloaded the AnyConnect VPN tarball, you can double-click to extract the folder downloaded folder or use the commands below to extract… The current file should be named:  anyconnect-linux64-4.7.03052-predeploy-k9.tar.gz.

By default the file will be downloaded in your home folder ( /home/user/Downloads ), but typically the last used directory of the browser is where automatic downloads are placed…

Run the commands below to extract the downloaded file if you’re unable to double-click to extract….

tar xvf anyconnect-linux64-4.7.03052-predeploy-k9.tar.gz

After extracting, open the newly-extracted folder to find the VPN folder… Change into the VPN folder…

cd vpn

Right-click the vpn_install.sh file.

and select Run.

Use the GUI App to install the Cisco AnyConnect VPN client at the root level.

If you can’t install it via the GUI app, then run the commands below to install…

sudo ./vpn_install.sh

That will install Cisco AnyConnect VPN client for you…

Installing DART

To install Dart, follow the steps below:

First, open the dart. folder inside the newly-extract anyconnect folder…

Right-click the dart_install.sh file.

Then select Run.

Use the GUI App to install the Cisco AnyConnect Diagnostic and Reporting Tool.

If the GUI installation doesn’t work, run the commands below to install it..

sudo .‚ĀĄdart_install.sh

That should install AnyConnect for you including DART… After that, Cisco AnyConnect Secure Mobility Client should be ready to use..

Cisco AnyConnect VPN Client

Now all you have to do is launch it and connect to the VPN gateway…

That’s!

You may also like the post below:

13 thoughts on “Installing Cisco AnyConnect VPN Client on Ubuntu 18.04 | 16.04

  1. Hi,

    I am running Ubuntu 20.04.
    I get this error:
    ================================================
    >> state: Connecting
    >> notice: Establishing VPN session…
    The AnyConnect Downloader is analyzing this computer. Please wait…
    The AnyConnect Downloader is performing update checks…
    >> notice: The AnyConnect Downloader is performing update checks…
    >> notice: Checking for profile updates…
    >> notice: Checking for product updates…
    Failed to get configuration because AnyConnect cannot confirm it is connected to your secure gateway. Contact your system administrator.
    >> notice: Connection attempt has failed.
    >> error: AnyConnect was not able to establish a connection to the specified secure gateway. Please try connecting again.
    >> state: Disconnected
    ================================================

    Please advice

  2. Thank you for the guide.
    I am also facing this issue where after authentication anyconnect doesnt go through with the connection

    Error Message: AnyConnect was not able to establish a connection to the specified secure gateway. Please try connecting again.

    Interestingly, initially i was able to get this connection working, after 30-40 minutes of usage, now im not able to get through at all.

    OS: Ubuntu 18.04
    Environment: Hyper-V on Windows 10

    Any ideas on what can be done?

  3. Ubuntu 20.04

    sudo apt-get update
    sudo apt-get install lib32z1 lib32ncurses5-dev

    And works!

    To Save profile use this path:
    /opt/cisco/anyconnect/profile/preferences.xml
    With a valid preferences.xml file

  4. i am getting the following error.
    siva@SivaPC:~/Desktop/anyconnect-predeploy-linux-64-4.2.01022-k9/anyconnect-4.2.01022/vpn$ ./vpnui
    ./vpnui: error while loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory
    siva@SivaPC:~/Desktop/anyconnect-predeploy-linux-64-4.2.01022-k9/anyconnect-4.2.01022/vpn$

Leave a Reply to IvnSrn Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.