update-dlocatedb: 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/sbin/update-dlocatedb - from package: dlocate

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