cec-ctl command not found

In this troubleshooting guide we learn how to fix cec-ctl command not found error message

Introduction

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

cec-ctl: command not found

or when using sudo you get the following error message

sudo: cec-ctl: command not found

Solutions to cec-ctl: command not found

How To Fix cec-ctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cec-ctl is provided by v4l-utils package.

v4l-utils is:

v4l-utils contains the following video4linux command line utilities:

decode_tm6000: decodes tm6000 proprietary format streams rds-ctl: tool to receive and decode Radio Data System (RDS) streams v4l2-compliance: tool to test v4l2 API compliance of drivers v4l2-ctl, cx18-ctl, ivtv-ctl: tools to control v4l2 controls from the cmdline v4l2-dbg: tool to directly get and set registers of v4l2 devices v4l2-sysfs-path: sysfs helper tool

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

sudo apt-get -y install v4l-utils

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

You can also use apt command to install v4l-utils.

sudo apt -y install v4l-utils

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

sudo aptitude install v4l-utils

Summary

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