lofromtemplate: 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/lofromtemplate - from package: libreoffice-common

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