expect_autopasswd: 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_autopasswd - from package: expect

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