My CUPS runs well from applications like gedit, Open Office or GIMP, but using command line fails. Example:
lp -d MFCJ470DW adeu.txt
request identifier is MFCJ470DW-40 (1 file (s))
Then, in localhost:631 -> Jobs we can see:
MFCJ470DW-40 adeu.txt jordi 1k Unknown stopped
"Filter failed"
Also I tried with CUPS-PDF package with the same results
lp -d Virtual_PDF_Printer_2 adeu.txt
request identifier is Virtual_PDF_Printer_2-41 (1 file (s))
and the web again:
Virtual_PDF_Printer_2-41 adeu.txt jordi 1k Unknown stopped
"Filter failed"
All the fixes I've found about the "filter failed" not works, the strange thing is CUPS runs well, is only the command lp that don't. Indeed, in the folder $HOME/PDF we have a file home_jordi_PDF-job_41.pdf but is in blank.
Lines related into /var/log/cups/error_log don't help me:
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetArray: job_printer_state_message[2]=\"Filter failed\"
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetVariable: SERVER_NAME=\"localhost\"
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetVariable: REMOTE_USER=\"jordi\"
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetVariable: CUPS_VERSION=\"CUPS v2.3.1\"
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetArray: job_preserved[3]=\"1\"
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetArray: job_printer_name[3]=\"Virtual_PDF_Printer_2\"
D [02/Nov/2021:17:44:22 +0100] [CGI] cgiSetArray: job_printer_uri[3]=\"/printers/Virtual_PDF_Printer_2\"
What may be the error here?