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

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