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

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