bf_compact-bdb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
bf_compact-bdb: command not found
or when using sudo you get the following error message
sudo: bf_compact-bdb: command not found
Solutions to bf_compact-bdb: command not found
How To Fix bf_compact-bdb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu bf_compact-bdb is provided by bogofilter-bdb package.
bogofilter-bdb is:
This package implements a fast Bayesian spam filter along the lines suggested by Paul Graham in his article “A Plan For Spam”.
This version substantially improves on Paul’s proposal by doing smarter lexical analysis. In particular, hostnames and IP addresses are retained as recognition features rather than broken up. Various kinds of MTA cruft such as dates and message-IDs are discarded so as not to bloat the word lists.
This package provides the bdb database backend.
To fix this problem, we can install more using the command below.
sudo apt-get -y install bogofilter-bdb
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install bogofilter-bdb.
sudo apt -y install bogofilter-bdb
Or if you have aptitude installed you can use the following command.
sudo aptitude install bogofilter-bdb
Summary
In this tutorial we learn how to fix bf_compact-bdb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.