zbarcam command not found

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

Introduction

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

zbarcam: command not found

or when using sudo you get the following error message

sudo: zbarcam: command not found

Solutions to zbarcam: command not found

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

In Ubuntu zbarcam is provided by zbar-tools package.

zbar-tools is:

ZBar is a library for scanning and decoding bar codes from various sources such as video streams, image files or raw intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.

This package contains basic applications for decoding captured bar code images and using a video4linux device (e.g. webcam) as a bar code scanner.

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

sudo apt-get -y install zbar-tools

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

You can also use apt command to install zbar-tools.

sudo apt -y install zbar-tools

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

sudo aptitude install zbar-tools

Summary

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