ovs-testcontroller command not found

In this troubleshooting guide we learn how to fix ovs-testcontroller command not found error message

Introduction

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

ovs-testcontroller: command not found

or when using sudo you get the following error message

sudo: ovs-testcontroller: command not found

Solutions to ovs-testcontroller: command not found

How To Fix ovs-testcontroller: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ovs-testcontroller is provided by openvswitch-testcontroller package.

openvswitch-testcontroller is:

This controller enables OpenFlow switches that connect to it to act as MAC-learning Ethernet switches. It can be used for initial testing of OpenFlow networks. It is not a necessary or desirable part of a production OpenFlow deployment.

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

sudo apt-get -y install openvswitch-testcontroller

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

You can also use apt command to install openvswitch-testcontroller.

sudo apt -y install openvswitch-testcontroller

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

sudo aptitude install openvswitch-testcontroller

Summary

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