COMPATIBILITY
Unlike the System V printing system, CUPS allows printer names to contain any printable character except
SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive. Finally, the CUPS version
of lpadmin may ask the user for an access password depending on the printing system configuration. This
differs from the System V version which requires the root user to execute this command.
What a bummer.
If lpadmin requires interaction under certain circumstances, we either need to avoid those circumstances in maintainer scripts, or not use it in maintainer scripts.
This is a result of the following line in the postinst script:
lpadmin -h localhost -p $queue -E -v cups-pdf:/ -m lsb/usr/ cups-pdf/ PostscriptColor .ppd -o printer- is-shared= no -o PageSize=$size 2>/dev/null || :
From the lpadmin manpage:
COMPATIBILITY
Unlike the System V printing system, CUPS allows printer names to contain any printable character except
SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive. Finally, the CUPS version
of lpadmin may ask the user for an access password depending on the printing system configuration. This
differs from the System V version which requires the root user to execute this command.
What a bummer.
If lpadmin requires interaction under certain circumstances, we either need to avoid those circumstances in maintainer scripts, or not use it in maintainer scripts.