tmexpand: 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/tmexpand - from package: tmexpand

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