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

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