lp-attach: 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/lp-attach - from package: lptools

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