I have a setup that worked fine (on Synology NAS), until a recent update.
lp can apparently not print, even though the printer seems to exist okay:
$ lpstat -p -d
printer HP8210 is idle. enabled since Fri 25 Feb 2022 11:35:36 AM CET
printer HP8740 is idle. enabled since Mon 28 Feb 2022 10:28:47 AM CET
$ ls -l /opt/bin/lp
-rwxr-xr-x 1 root root 18568 Oct 7 2018 /opt/bin/lp
$ /opt/bin/lp -d HP8740
/opt/bin/lp: No such file or directory
$ echo "foo" | /opt/bin/lp -d HP8740 2>&1
/opt/bin/lp: No such file or directory
I assume that "No such file or directory" means that something is incorrect regarding the printer/device configuration? It is reported here as an incorrect/inadequate output: https://bugzilla.redhat.com/show_bug.cgi?id=1811716
Looks lpr works fine, though.
How can that be troubleshot?
Edit: Added ls output, lpr output, and link to issue reported against lp on the output message.
Asked by Dennis Thrysøe
(121 rep)
Feb 28, 2022, 11:54 AM
Last activity: Apr 25, 2024, 04:08 AM
Last activity: Apr 25, 2024, 04:08 AM