clambc command not found

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

Introduction

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

clambc: command not found

or when using sudo you get the following error message

sudo: clambc: command not found

Solutions to clambc: command not found

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

In Ubuntu clambc is provided by clamav package.

clamav is:

Clam AntiVirus is an anti-virus toolkit for Unix. The main purpose of this software is the integration with mail servers (attachment scanning). The package provides a flexible and scalable multi-threaded daemon in the clamav-daemon package, a command-line scanner in the clamav package, and a tool for automatic updating via the Internet in the clamav-freshclam package. The programs are based on libclamav, which can be used by other software.

This package contains the command line interface. Features:

  • built-in support for various archive formats, including Zip, Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS and others;
  • built-in support for almost all mail file formats;
  • built-in support for ELF executables and Portable Executable files compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and obfuscated with SUE, Y0da Cryptor and others;
  • built-in support for popular document formats including Microsoft Office and Mac Office files, HTML, RTF and PDF.

For scanning to work, a virus database is needed. There are two options for getting it:

  • clamav-freshclam: updates the database from Internet. This is recommended with Internet access.
  • clamav-data: for users without Internet access. The package is not updated once installed. The clamav-getfiles package allows creating custom packages from an Internet-connected computer.

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

sudo apt-get -y install clamav

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

You can also use apt command to install clamav.

sudo apt -y install clamav

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

sudo aptitude install clamav

Summary

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