PDA

View Full Version : No LPR command defined (3.4.1-1Debian81_amd64.deb)



ingoh
January 6th, 2017, 12:15 AM
Hi,
when using lbl-templ in amanda.conf amcheck gives this error:


ERROR: lbl-templ set but no LPR command defined. You should reconfigure amanda
and make sure it finds a lpr or lp command.

Would be nice to make this working again!
Ingo

martineau
January 6th, 2017, 05:57 AM
You can update the LPR and LPRFLAG setting in perl/Amanda/Constants.pm.
I have:

$LPR = "/usr/bin/lpr";
$LPRFLAG = "-P";

ingoh
January 6th, 2017, 10:57 AM
Thanks a lot for the hint, but it does not make a difference with amcheck. Still the same error :(

martineau
January 6th, 2017, 11:02 AM
There is no way to fix amcheck without recompiling amanda.
but amreport should be able to print the label

ingoh
January 11th, 2017, 06:10 AM
Too bad. We use amcheck with the mail option. Without LPR we get an error and amcheck sends an appropriate mail.

Is there a script or readme anywhere how to reconfigure/recompile amanda?