You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

lp Command Gives Error “no default destination available”

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!