I use Garuda linux and HP printer. When I click "print" from a document viewer, it works. When I type lp -d <printer_name> example.pdf
, it works.
But lp example.pdf
returns lp: Error - No default destination.
And sudo lpadmin -d <printer_name>
returns lpadmin: The printer or class does not exist.
Why is this the case? The printer's name is recognized when I use it with lp
, but not when I try to set it as default. How do I set the default printer so that lp example.pdf
just works?