rpmdb2solv: 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 CentOS possible default full paths are:

/usr/bin/rpmdb2solv - from package: libsolv-tools

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/rpmdb2solv - from package: libsolv-tools

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