lp Command Gives Error “no default destination available”
in Linux
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Oracle Linux
Symptoms:
The system is configured with multiple printers in CUPS.
The printers are ready and available in lpstat.
Printing a file to one of the configured printers gives an error:
$ lp -P PRINTER-NAME document_name.pdf lp: Error - no default destination available.
Cause:
This is caused by the fact that the system does not have a default printer in CUPS and the command being used is not identifying the printer to use.
To specify the destination printer, the flag needs to be used is ‘-d’.
Solution:
Tagged:
0