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

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