update-mime-database.real: 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/update-mime-database.real - from package: shared-mime-info

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