Portál AbcLinuxu, 10. května 2025 05:49
$ echo wohoo|lp lp: Unsupported format 'text/plain'!To stejný pod rootem. Když chci přes CUPS http rozhraní vytisknout testovací stránku, hodí to pro změnu
Unsupported format 'application/postscript'!Když nastavím logování na "debug", po pokusu o tisk se v error_log objeví:
D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 12 D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 9 D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 10 D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 11 D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 8 D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 13 D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 14 D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 6 POST / HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] Get-Printer-Attributes ipp://localhost/printers/printer D [12/Oct/2006:06:23:44 +0200] cupsdProcessIPPRequest: 6 status_code=0 (successful-ok) D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 6 GET /printers/printer.ppd HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] write_file: 6 file=8 D [12/Oct/2006:06:23:44 +0200] cupsdAcceptClient: 8 from localhost:631 (IPv4) D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 8 POST /printers/printer HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] Print-Job ipp://localhost/printers/printer D [12/Oct/2006:06:23:44 +0200] print_job: auto-typing file... D [12/Oct/2006:06:23:44 +0200] print_job: request file type is application/postscript. D [12/Oct/2006:06:23:44 +0200] Print-Job client-error-document-format-not-supported: Unsupported format 'application/postscript'! D [12/Oct/2006:06:23:44 +0200] cupsdProcessIPPRequest: 8 status_code=40a (client-error-document-format-not-supported) D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 8 D [12/Oct/2006:06:23:44 +0200] cupsdAcceptClient: 8 from localhost:631 (IPv4) D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 8 POST /printers/ HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] CUPS-Get-Printers D [12/Oct/2006:06:23:44 +0200] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok) D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 8 D [12/Oct/2006:06:23:44 +0200] cupsdAcceptClient: 8 from localhost:631 (IPv4) D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 8 POST /classes/ HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] CUPS-Get-Classes D [12/Oct/2006:06:23:44 +0200] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok) D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 8 D [12/Oct/2006:06:23:44 +0200] cupsdAcceptClient: 8 from localhost:631 (IPv4) D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 8 POST /printers/ HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] CUPS-Get-Default D [12/Oct/2006:06:23:44 +0200] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok) D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 8 D [12/Oct/2006:06:23:44 +0200] cupsdAcceptClient: 8 from localhost:631 (IPv4) D [12/Oct/2006:06:23:44 +0200] cupsdReadClient: 8 POST / HTTP/1.1 D [12/Oct/2006:06:23:44 +0200] cupsdAuthorize: No authentication data provided. D [12/Oct/2006:06:23:44 +0200] Get-Jobs ipp://localhost:631/printers/printer D [12/Oct/2006:06:23:44 +0200] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok) D [12/Oct/2006:06:23:44 +0200] cupsdCloseClient: 8Netušíte někdo čím to?
Řešení dotazu:
FEATURES=-collision-protect emerge -va1 \ $(qfile -qC /usr/lib/cups /etc/cups | sed "s:net-print/cups$::")Jenže to mi nepomohlo. Pomohlo:
echo media-gfx/gimp-print foomaticdb>>/etc/portage/package.use emerge -uN gimp-print
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.