openvpn command not found

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

Introduction

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

openvpn: command not found

or when using sudo you get the following error message

sudo: openvpn: command not found

Solutions to openvpn: command not found

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

In Ubuntu openvpn is provided by openvpn package.

openvpn is:

OpenVPN is an application to securely tunnel IP networks over a single UDP or TCP port. It can be used to access remote sites, make secure point-to-point connections, enhance wireless security, etc.

OpenVPN uses all of the encryption, authentication, and certification features provided by the OpenSSL library (any cipher, key size, or HMAC digest).

OpenVPN may use static, pre-shared keys or TLS-based dynamic key exchange. It also supports VPNs with dynamic endpoints (DHCP or dial-up clients), tunnels over NAT or connection-oriented stateful firewalls (such as Linux’s iptables).

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

sudo apt-get -y install openvpn

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

You can also use apt command to install openvpn.

sudo apt -y install openvpn

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

sudo aptitude install openvpn

Summary

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