swanctl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
swanctl: command not found
or when using sudo you get the following error message
sudo: swanctl: command not found
Solutions to swanctl: command not found
How To Fix swanctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu swanctl is provided by strongswan-swanctl package.
strongswan-swanctl 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 contains the swanctl interface, used to configure a running charon daemon
To fix this problem, we can install more using the command below.
sudo apt-get -y install strongswan-swanctl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install strongswan-swanctl.
sudo apt -y install strongswan-swanctl
Or if you have aptitude installed you can use the following command.
sudo aptitude install strongswan-swanctl
Summary
In this tutorial we learn how to fix swanctl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.