CUPS 和 Raspbian - 打印机打开但不打印

CUPS 和 Raspbian - 打印机打开但不打印

我一直在使用 CUPS 在我的树莓派上设置家庭打印服务器。

我已经设法让它与我的一台打印机一起使用,但不能与旧的激光打印机:Samsung ML-1520 一起使用。当我打印测试页时,它工作正常,并且打印正确,但它不打印 Word 文档(1 页)。当我发送打印订单时,打印机开始旋转,就像有作业一样,但随后停止而不打印。

我无法理解调试信息。

以下是打印请求之前到打印请求之后的日志表格。 --> 它确实旋转了,但没有打印任何内容。

这是调试日志:

pi@raspberrypi ~ $ tail -f /var/log/cups/error_log
D [04/Sep/2015:21:27:16 +0000] cupsdNetIFUpdate: "lo" = localhost:631
D [04/Sep/2015:21:27:16 +0000] cupsdNetIFUpdate: "eth0" = 192.168.0.64:631
D [04/Sep/2015:21:27:16 +0000] Report: clients=9
D [04/Sep/2015:21:27:16 +0000] Report: jobs=17
D [04/Sep/2015:21:27:16 +0000] Report: jobs-active=0
D [04/Sep/2015:21:27:16 +0000] Report: printers=2
D [04/Sep/2015:21:27:16 +0000] Report: printers-implicit=0
D [04/Sep/2015:21:27:16 +0000] Report: stringpool-string-count=10340
D [04/Sep/2015:21:27:16 +0000] Report: stringpool-alloc-bytes=10360
D [04/Sep/2015:21:27:16 +0000] Report: stringpool-total-bytes=189176
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 15 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 15
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 16 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 16
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 18 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 18
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 19 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 19
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 20 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 20
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 21 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 21
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 22 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 22
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 23 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 23
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:28:18 +0000] cupsdNetIFUpdate: "lo" = localhost:631
D [04/Sep/2015:21:28:18 +0000] cupsdNetIFUpdate: "eth0" = 192.168.0.64:631
D [04/Sep/2015:21:28:18 +0000] Report: clients=1
D [04/Sep/2015:21:28:18 +0000] Report: jobs=17
D [04/Sep/2015:21:28:18 +0000] Report: jobs-active=0
D [04/Sep/2015:21:28:18 +0000] Report: printers=2
D [04/Sep/2015:21:28:18 +0000] Report: printers-implicit=0
D [04/Sep/2015:21:28:18 +0000] Report: stringpool-string-count=10340
D [04/Sep/2015:21:28:18 +0000] Report: stringpool-alloc-bytes=10360
D [04/Sep/2015:21:28:18 +0000] Report: stringpool-total-bytes=189176
D [04/Sep/2015:21:28:31 +0000] cupsdAcceptClient: 15 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:31 +0000] cupsdReadClient: 15 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:31 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:31 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:31 +0000] cupsdReadClient: 15 1.0 Get-Printer-Attributes 11
D [04/Sep/2015:21:28:31 +0000] Get-Printer-Attributes http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:31 +0000] Returning IPP successful-ok for Get-Printer-Attributes (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:31 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:32 +0000] cupsdAcceptClient: 16 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:32 +0000] cupsdReadClient: 16 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:32 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:32 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:32 +0000] cupsdReadClient: 16 1.0 Get-Printer-Attributes 11
D [04/Sep/2015:21:28:32 +0000] Get-Printer-Attributes http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:32 +0000] Returning IPP successful-ok for Get-Printer-Attributes (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:32 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:32 +0000] cupsdAcceptClient: 18 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:32 +0000] cupsdReadClient: 18 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:32 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:32 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:32 +0000] cupsdReadClient: 18 1.0 Get-Printer-Attributes 11
D [04/Sep/2015:21:28:32 +0000] Get-Printer-Attributes http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:32 +0000] Returning IPP successful-ok for Get-Printer-Attributes (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:32 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:33 +0000] cupsdAcceptClient: 19 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 19 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:33 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 19 1.0 Get-Jobs 10
D [04/Sep/2015:21:28:33 +0000] Get-Jobs http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:33 +0000] Returning IPP successful-ok for Get-Jobs (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:33 +0000] cupsdAcceptClient: 20 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 20 POST /printers/HP_Color_LaserJet_CP1215 HTTP/1.1
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:33 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 20 1.0 Get-Printer-Attributes 11
D [04/Sep/2015:21:28:33 +0000] Get-Printer-Attributes http://192.168.0.64:631/printers/HP_Color_LaserJet_CP1215
D [04/Sep/2015:21:28:33 +0000] Returning IPP successful-ok for Get-Printer-Attributes (http://192.168.0.64:631/printers/HP_Color_LaserJet_CP1215) from 192.168.0.100
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:33 +0000] cupsdAcceptClient: 21 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 21 POST /printers/HP_Color_LaserJet_CP1215 HTTP/1.1
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:33 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 21 1.0 Get-Jobs 10
D [04/Sep/2015:21:28:33 +0000] Get-Jobs http://192.168.0.64:631/printers/HP_Color_LaserJet_CP1215
D [04/Sep/2015:21:28:33 +0000] Returning IPP successful-ok for Get-Jobs (http://192.168.0.64:631/printers/HP_Color_LaserJet_CP1215) from 192.168.0.100
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:33 +0000] cupsdAcceptClient: 22 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 22 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:33 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 22 1.0 Get-Printer-Attributes 11
D [04/Sep/2015:21:28:33 +0000] Get-Printer-Attributes http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:33 +0000] Returning IPP successful-ok for Get-Printer-Attributes (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:33 +0000] cupsdAcceptClient: 23 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 23 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:33 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:33 +0000] cupsdReadClient: 23 1.0 Print-Job 2
D [04/Sep/2015:21:28:33 +0000] Print-Job http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:33 +0000] [Job ???] Auto-typing file...
I [04/Sep/2015:21:28:33 +0000] [Job ???] Request file type is application/vnd.cups-raw.
D [04/Sep/2015:21:28:33 +0000] cupsdMarkDirty(----J-)
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [04/Sep/2015:21:28:33 +0000] add_job: requesting-user-name="Sandu Rajapakse"
D [04/Sep/2015:21:28:33 +0000] Adding default job-sheets values "none,none"...
I [04/Sep/2015:21:28:33 +0000] [Job 18] Adding start banner page "none".
D [04/Sep/2015:21:28:33 +0000] Discarding unused job-created event...
D [04/Sep/2015:21:28:33 +0000] cupsdMarkDirty(----J-)
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
I [04/Sep/2015:21:28:33 +0000] [Job 18] Adding end banner page "none".
I [04/Sep/2015:21:28:33 +0000] [Job 18] File of type application/vnd.cups-raw queued by "Sandu Rajapakse".
D [04/Sep/2015:21:28:33 +0000] [Job 18] hold_until=0
I [04/Sep/2015:21:28:33 +0000] [Job 18] Queued on "Samsung_ML-1520" by "Sandu Rajapakse".
D [04/Sep/2015:21:28:33 +0000] cupsdMarkDirty(----J-)
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [04/Sep/2015:21:28:33 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] job-sheets=none,none
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[0]="Samsung_ML-1520"
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[1]="18"
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[2]="Sandu Rajapakse"
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[3]="Microsoft Word - Mob Spawning.docx"
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[4]="1"
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[5]="job-uuid=urn:uuid:e9ae1e81-f7e9-38d2-7bfe-2894fa263899 job-originating-host-name=192.168.0.100 time-at-creation=1441402113 time-at-processing=1441402113"
D [04/Sep/2015:21:28:33 +0000] [Job 18] argv[6]="/var/spool/cups/d00018-001"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[8]="HOME=/var/spool/cups/tmp"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[10]="SERVER_ADMIN=root@raspberrypi"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[11]="SOFTWARE=CUPS/1.5.3"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[13]="TZ=Etc/UTC"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[14]="USER=root"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[17]="IPP_PORT=631"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[18]="CHARSET=utf-8"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[19]="LANG=en_US.UTF-8"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[20]="PPD=/etc/cups/ppd/Samsung_ML-1520.ppd"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[21]="RIP_MAX_CACHE=128m"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[22]="CONTENT_TYPE=application/vnd.cups-raw"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[23]="DEVICE_URI=usb://Samsung/ML-1520?serial=2X61BKAXC08883T."
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[24]="PRINTER_INFO=Samsung ML-1520"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[25]="PRINTER_LOCATION=Sandu's Room - Near PC"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[26]="PRINTER=Samsung_ML-1520"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[27]="PRINTER_STATE_REASONS=none"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[28]="CUPS_FILETYPE=document"
D [04/Sep/2015:21:28:33 +0000] [Job 18] envp[29]="AUTH_I****"
I [04/Sep/2015:21:28:33 +0000] [Job 18] Started backend /usr/lib/cups/backend/usb (PID 2413)
D [04/Sep/2015:21:28:33 +0000] Discarding unused job-state-changed event...
D [04/Sep/2015:21:28:33 +0000] Returning IPP successful-ok for Print-Job (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:33 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients and dirty files"
D [04/Sep/2015:21:28:33 +0000] [Job 18] Printing on printer with URI: usb://Samsung/ML-1520?serial=2X61BKAXC08883T.
D [04/Sep/2015:21:28:33 +0000] [Job 18] libusb_get_device_list=5
D [04/Sep/2015:21:28:33 +0000] [Job 18] STATE: +connecting-to-device
D [04/Sep/2015:21:28:33 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] STATE: -connecting-to-device
D [04/Sep/2015:21:28:33 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] STATE: +connecting-to-device
D [04/Sep/2015:21:28:33 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] STATE: -connecting-to-device
D [04/Sep/2015:21:28:33 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Device protocol: 2
I [04/Sep/2015:21:28:33 +0000] [Job 18] Sending data to printer.
D [04/Sep/2015:21:28:33 +0000] [Job 18] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [04/Sep/2015:21:28:33 +0000] Discarding unused job-progress event...
D [04/Sep/2015:21:28:33 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] PAGE: 1 1
D [04/Sep/2015:21:28:33 +0000] Discarding unused job-progress event...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Read 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Wrote 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sending print file, 8192 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Read 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Wrote 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sending print file, 16384 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Read 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Wrote 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sending print file, 24576 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Read 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Wrote 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sending print file, 32768 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Read 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Wrote 8192 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sending print file, 40960 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Read 779 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Wrote 779 bytes of print data...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sending print file, 41739 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Sent 41739 bytes...
D [04/Sep/2015:21:28:33 +0000] [Job 18] Waiting for read thread to exit...
D [04/Sep/2015:21:28:40 +0000] [Job 18] Read thread still active, aborting the pending read...
D [04/Sep/2015:21:28:42 +0000] [Job 18] Resetting printer.
D [04/Sep/2015:21:28:42 +0000] PID 2413 (/usr/lib/cups/backend/usb) exited with no errors.
D [04/Sep/2015:21:28:42 +0000] Discarding unused job-completed event...
I [04/Sep/2015:21:28:42 +0000] [Job 18] Job completed.
D [04/Sep/2015:21:28:42 +0000] cupsdMarkDirty(----J-)
D [04/Sep/2015:21:28:42 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [04/Sep/2015:21:28:42 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [04/Sep/2015:21:28:42 +0000] Discarding unused printer-state-changed event...
D [04/Sep/2015:21:28:43 +0000] [Job 18] Unloading...
I [04/Sep/2015:21:29:04 +0000] Saving job.cache...
D [04/Sep/2015:21:29:04 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Printing jobs and dirty files"
D [04/Sep/2015:21:29:20 +0000] cupsdNetIFUpdate: "lo" = localhost:631
D [04/Sep/2015:21:29:20 +0000] cupsdNetIFUpdate: "eth0" = 192.168.0.64:631
D [04/Sep/2015:21:29:20 +0000] Report: clients=9
D [04/Sep/2015:21:29:20 +0000] Report: jobs=18
D [04/Sep/2015:21:29:20 +0000] Report: jobs-active=0
D [04/Sep/2015:21:29:20 +0000] Report: printers=2
D [04/Sep/2015:21:29:20 +0000] Report: printers-implicit=0
D [04/Sep/2015:21:29:20 +0000] Report: stringpool-string-count=10342
D [04/Sep/2015:21:29:20 +0000] Report: stringpool-alloc-bytes=10360
D [04/Sep/2015:21:29:20 +0000] Report: stringpool-total-bytes=189208
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 15 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 15
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 16 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 16
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 18 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 18
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 19 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 19
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 20 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 20
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 21 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 21
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 22 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 22
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:29:33 +0000] cupsdReadClient: 23 WAITING Closing on EOF
D [04/Sep/2015:21:29:33 +0000] cupsdCloseClient: 23
D [04/Sep/2015:21:29:33 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:16 +0000] cupsdNetIFUpdate: "lo" = localhost:631
D [04/Sep/2015:21:27:16 +0000] cupsdNetIFUpdate: "eth0" = 192.168.0.64:631
D [04/Sep/2015:21:27:16 +0000] Report: clients=9
D [04/Sep/2015:21:27:16 +0000] Report: jobs=17
D [04/Sep/2015:21:27:16 +0000] Report: jobs-active=0
D [04/Sep/2015:21:27:16 +0000] Report: printers=2
D [04/Sep/2015:21:27:16 +0000] Report: printers-implicit=0
D [04/Sep/2015:21:27:16 +0000] Report: stringpool-string-count=10340
D [04/Sep/2015:21:27:16 +0000] Report: stringpool-alloc-bytes=10360
D [04/Sep/2015:21:27:16 +0000] Report: stringpool-total-bytes=189176
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 15 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 15
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 16 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 16
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 18 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 18
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 19 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 19
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 20 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 20
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 21 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 21
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 22 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 22
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:27:43 +0000] cupsdReadClient: 23 WAITING Closing on EOF
D [04/Sep/2015:21:27:43 +0000] cupsdCloseClient: 23
D [04/Sep/2015:21:27:43 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [04/Sep/2015:21:28:18 +0000] cupsdNetIFUpdate: "lo" = localhost:631
D [04/Sep/2015:21:28:18 +0000] cupsdNetIFUpdate: "eth0" = 192.168.0.64:631
D [04/Sep/2015:21:28:18 +0000] Report: clients=1
D [04/Sep/2015:21:28:18 +0000] Report: jobs=17
D [04/Sep/2015:21:28:18 +0000] Report: jobs-active=0
D [04/Sep/2015:21:28:18 +0000] Report: printers=2
D [04/Sep/2015:21:28:18 +0000] Report: printers-implicit=0
D [04/Sep/2015:21:28:18 +0000] Report: stringpool-string-count=10340
D [04/Sep/2015:21:28:18 +0000] Report: stringpool-alloc-bytes=10360
D [04/Sep/2015:21:28:18 +0000] Report: stringpool-total-bytes=189176
D [04/Sep/2015:21:28:31 +0000] cupsdAcceptClient: 15 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:31 +0000] cupsdReadClient: 15 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:31 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:31 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:31 +0000] cupsdReadClient: 15 1.0 Get-Printer-Attributes 11
D [04/Sep/2015:21:28:31 +0000] Get-Printer-Attributes http://192.168.0.64:631/printers/Samsung_ML-1520
D [04/Sep/2015:21:28:31 +0000] Returning IPP successful-ok for Get-Printer-Attributes (http://192.168.0.64:631/printers/Samsung_ML-1520) from 192.168.0.100
D [04/Sep/2015:21:28:31 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [04/Sep/2015:21:28:32 +0000] cupsdAcceptClient: 16 from 192.168.0.100:631 (IPv4)
D [04/Sep/2015:21:28:32 +0000] cupsdReadClient: 16 POST /printers/Samsung_ML-1520 HTTP/1.1
D [04/Sep/2015:21:28:32 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [04/Sep/2015:21:28:32 +0000] cupsdAuthorize: No authentication data provided.
D [04/Sep/2015:21:28:32 +0000] cupsdReadClient: 16 1.0 Ge

解决方案: 我刚刚发现出了什么问题。因此,正如我在原来的帖子中提到的,打印机能够从 CUPS 打印测试页,这意味着打印机和 CUPS 之间的连接和通信非常好。但是当我从 PC 发送页面进行打印时,它失败了。 @thrig 查看了调试信息并告诉我它正在发送整个文件。这让我认为这是一个驱动程序问题。

由于该打印机是旧的三星打印机,因此它使用 Samsun Vniversal 打印驱动程序。我认为这会导致 PC 和 CUPS(具有打印机特定驱动程序)之间的通信错误。因此,我访问了 Samsung ML-1520 网站并查找设备特定驱动程序。我找到了一个 GDI 打印驱动程序。记得 CUPS 中使用的驱动程序也提到了 GDI,我知道这就是解决方案。

但是,它是为 Windows 7 制作的较旧驱动程序,而我使用的是 Windows 10,并且我从 Windows 中收到了未签名的驱动程序错误,导致我无法安装它。

有了这些信息,我开始寻找 GDI 驱动程序的签名版本。我找到了较新的 ML-2250 的 GDI 驱动程序。我还了解到它也与我的打印机兼容。我下载了它并运行了提取。解压后,我进入文件并在其中找到了 x64 GDI 驱动程序。然后,我在 PC 上重新安装了 ML-1520 打印机,但当它要求选择驱动程序时,我选择了“从磁盘安装”并选择了签名 GDI 驱动程序(而不是从列表中选择)。安装后,我运行了打印,它成功了!我还用 Word 文档、PDF 和图像进行了测试,但似乎已经解决了问题。

tl;dr:这是一个驱动程序问题。请勿使用通用打印驱动程序。从 Samsung 网站获取 GDI 驱动程序(如果您的打印机较旧,则可以从较新的版本获取)。必须签字。在 PC 上安装打印机并使用 GDI 驱动程序而不是从磁盘中选择。

相关内容