pt-tls-client command not found

In this troubleshooting guide we learn how to fix pt-tls-client command not found error message

Introduction

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

pt-tls-client: command not found

or when using sudo you get the following error message

sudo: pt-tls-client: command not found

Solutions to pt-tls-client: command not found

How To Fix pt-tls-client: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pt-tls-client is provided by libcharon-extra-plugins package.

libcharon-extra-plugins is:

The strongSwan VPN suite uses the native IPsec stack in the standard Linux kernel. It supports both the IKEv1 and IKEv2 protocols.

This package provides extra plugins for the charon library:

  • addrblock (Narrow traffic selectors to RFC 3779 address blocks in X.509 certificates)
  • certexpire (Export expiration dates of used certificates)
  • eap-aka (Generic EAP-AKA protocol handler using different backends)
  • eap-gtc (EAP-GTC protocol handler authenticating with XAuth backends)
  • eap-identity (EAP-Identity identity exchange algorithm, to use with other EAP protocols)
  • eap-md5 (EAP-MD5 protocol handler using passwords)
  • eap-radius (EAP server proxy plugin forwarding EAP conversations to a RADIUS server)
  • eap-tls (EAP-TLS protocol handler, to authenticate with certificates in EAP)
  • eap-tnc (EAP-TNC protocol handler, Trusted Network Connect in a TLS tunnel)
  • eap-ttls (EAP-TTLS protocol handler, wraps other EAP methods securely)
  • error-notify (Notification about errors via UNIX socket)
  • ha (High-Availability clustering)
  • kernel-libipsec (Userspace IPsec Backend with TUN devices)
  • led (Let Linux LED subsystem LEDs blink on IKE activity)
  • lookip (Virtual IP lookup facility using a UNIX socket)
  • tnc (Trusted Network Connect)
  • unity (Cisco Unity extensions for IKEv1)
  • xauth-eap (XAuth backend that uses EAP methods to verify passwords)
  • xauth-pam (XAuth backend that uses PAM modules to verify passwords)
  • eap-dynamic (EAP proxy plugin that dynamically selects an EAP method requested/supported by the client (since 5.0.1))
  • eap-peap (EAP-PEAP protocol handler, wraps other EAP methods securely)

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

sudo apt-get -y install libcharon-extra-plugins

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

You can also use apt command to install libcharon-extra-plugins.

sudo apt -y install libcharon-extra-plugins

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

sudo aptitude install libcharon-extra-plugins

Summary

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