foomatic-replaceoldprinterids: 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/sbin/foomatic-replaceoldprinterids - from package: foomatic

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

On Debian possible default full paths are:

/usr/sbin/foomatic-replaceoldprinterids - from package: foomatic-db-engine

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