Installing Cisco AnyConnect VPN Client on Ubuntu 18.04 | 16.04

ubuntu 3344434 640 1

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:

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 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 ./

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 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 .⁄

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.


You may also like the post below:


  1. Thanks for the guide.
    lib32ncurses5 is gone, and should be lib32ncurses6 now.

  2. Hi. You can check previous version of the vpn client in , after all, the client will update itself to the current stable version. And work pritty fine! Thanks for the publication.

  3. 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

    1. im getting the same issue on my desktop but laptop is fine. both running 20.4

      1. I am using laptop and VMware

  4. 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?

    1. Debes colocar la tarjeta de red de la VM en modo Bridge.

  5. Ubuntu 20.04

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

    And works!

    To Save profile use this path:
    With a valid preferences.xml file

  6. Any ideas on how to connect to a server that requires a TLS certificate?

  7. 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: cannot open shared object file: No such file or directory

  8. i was wondering if i can install this on ubuntu server?
    i need gui right?

  9. Hi There,

    Does anyone have any idea how do I import the certificate?


  10. Internet stopped working after connecting with the Cisco Anyconnect VPN

    1. Yes, it does it because it is making a virtual connection and all traffic must go through a specific port, it is for your safety. you have to select a port through which all encrypted traffic will pass.

  11. Hi, how i can install cisco anyconnect in 32 bit ?

Leave a Reply

Your email address will not be published.

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