Printer problem

  1. When i am giving unknown printer in the lp command, I am facing the below error.

Is there any way to avoid the error?

lp -dadfsd adf.prn

ganeshb@its04489:~ $ lp -d adl -s pea_error1.txt
status Information, attempt 1 of 3:
sending job 'kganeshb@its04489+83' to adl@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer adl@localhost
job 'kganeshb@its04489+83' transfer to adl@localhost failed
error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
sending str '^Badl' to adl@localhost
error msg: 'spool queue for 'adl' does not exist on server its04489.chennai.fo
d.com'
error msg: 'check for correct printer name or you may need to run'
error msg: ''checkpc -f' to create queue'
waiting 10 seconds before retry