openconnect command not found

In this troubleshooting guide we learn how to fix openconnect command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

openconnect: command not found

or when using sudo you get the following error message

sudo: openconnect: command not found

Solutions to openconnect: command not found

How To Fix openconnect: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu openconnect is provided by openconnect package.

openconnect is:

OpenConnect is an SSL VPN client initially created to support Cisco’s AnyConnect SSL VPN. It has since been extended to support the Pulse Connect Secure VPN (formerly known as Juniper Network Connect or Junos Pulse), the Palo Alto Networks GlobalProtect SSL VPN, F5 Big-IP SSL VPN, Fortinet Fortigate SSL VPN and Array Networks AG SSL VPN.

A corresponding OpenConnect VPN server implementation can be found in the ocserv package.

To fix this problem, we can install more using the command below.

sudo apt-get -y install openconnect

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install openconnect.

sudo apt -y install openconnect

Or if you have aptitude installed you can use the following command.

sudo aptitude install openconnect

Summary

In this tutorial we learn how to fix openconnect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.