bogoupgrade-bdb: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/bogoupgrade-bdb - from package: bogofilter-bdb

You may install the required package with command apt-get install {package}
Error in other languages:
bogoupgrade-bdb: bevel nie gevind nie
bogoupgrade-bdb: comandă negăsită
bogoupgrade-bdb: comando não encontrado
bogoupgrade-bdb: commande introuvable
bogoupgrade-bdb: command not found
bogoupgrade-bdb: käsku ei ole
bogoupgrade-bdb: không tìm thấy lệnh
bogoupgrade-bdb: komanda nerasta
bogoupgrade-bdb: Kommando nicht gefunden.
bogoupgrade-bdb: kommandot finns inte
bogoupgrade-bdb: komut yok
bogoupgrade-bdb: nie znaleziono polecenia
bogoupgrade-bdb: níor aimsíodh an t-ordú
bogoupgrade-bdb: no se encontró la orden
bogoupgrade-bdb: no s'ha trobat l'ordre
bogoupgrade-bdb: opdracht niet gevonden
bogoupgrade-bdb: parancs nem található
bogoupgrade-bdb: perintah tidak ditemukan
bogoupgrade-bdb: príkaz nenájdený
bogoupgrade-bdb: příkaz nenalezen
bogoupgrade-bdb: команда не найдена
bogoupgrade-bdb: командата не е открита
bogoupgrade-bdb: 命令找不到
bogoupgrade-bdb: コマンドが見つかりません