Ubuntu Server 16.04 上的 CUPS 打印作业收到并“成功”,但没有实际打印

RPi*_*ess 6 server printing hp

我正在设置本地服务器,其中一部分将成为使用 HP LaserJet 1018 的 CUPS 打印服务器。

我能够设置并运行 CUPS,并且能够很好地安装打印机。

然而,当我去打印一份工作时,它被接收并且看起来是成功的,但实际上没有任何东西被打印出来。

以下是内容/var/log/cups/error_log

$ cat /var/log/cups/error_log 
E [03/Jul/2016:17:36:24 -0400] [cups-deviced] PID 11834 (gutenprint52+usb) stopped with status 1!
W [03/Jul/2016:17:42:23 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_LaserJet_1018-Gray..\' already exists
W [03/Jul/2016:17:53:05 -0400] Notifier for subscription 2 (dbus://) went away, retrying!
E [03/Jul/2016:17:54:25 -0400] [cups-deviced] PID 21003 (gutenprint52+usb) stopped with status 1!
E [03/Jul/2016:17:54:32 -0400] [cups-deviced] PID 21031 (gutenprint52+usb) stopped with status 1!
W [03/Jul/2016:17:54:48 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_LaserJet_1018-Gray..\' already exists
W [03/Jul/2016:17:54:54 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_LaserJet_1018-Gray..\' already exists
E [03/Jul/2016:18:02:17 -0400] [cups-deviced] PID 21389 (gutenprint52+usb) stopped with status 1!
W [03/Jul/2016:18:02:36 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_LaserJet_1018-Gray..\' already exists
W [03/Jul/2016:18:02:46 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_LaserJet_1018-Gray..\' already exists
Run Code Online (Sandbox Code Playgroud)

和一些/var/log/cups/access_log

localhost - - [03/Jul/2016:18:02:36 -0400] "POST /admin/ HTTP/1.1" 401 353 CUPS-Add-Modify-Printer successful-ok
localhost - cactus [03/Jul/2016:18:02:36 -0400] "POST /admin/ HTTP/1.1" 200 353 CUPS-Add-Modify-Printer successful-ok
192.168.0.106 - cactus [03/Jul/2016:18:02:36 -0400] "POST /admin HTTP/1.1" 200 14525 - -
192.168.0.106 - cactus [03/Jul/2016:18:02:46 -0400] "POST /admin HTTP/1.1" 200 409 - -
localhost - - [03/Jul/2016:18:02:46 -0400] "POST /admin/ HTTP/1.1" 401 24541 CUPS-Add-Modify-Printer successful-ok
localhost - cactus [03/Jul/2016:18:02:46 -0400] "POST /admin/ HTTP/1.1" 200 24541 CUPS-Add-Modify-Printer successful-ok
192.168.0.106 - cactus [03/Jul/2016:18:02:46 -0400] "POST /admin HTTP/1.1" 200 2425 - -
localhost - - [03/Jul/2016:18:03:00 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 423 Print-Job successful-ok
192.168.0.106 - - [03/Jul/2016:18:03:41 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 394 Validate-Job successful-ok
192.168.0.106 - - [03/Jul/2016:18:03:41 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 343 Create-Job successful-ok
192.168.0.106 - - [03/Jul/2016:18:03:41 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 440 Send-Document successful-ok
192.168.0.106 - - [03/Jul/2016:18:08:57 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 469 Validate-Job successful-ok
192.168.0.106 - - [03/Jul/2016:18:08:57 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 434 Create-Job successful-ok
192.168.0.106 - - [03/Jul/2016:18:08:57 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 80371 Send-Document successful-ok
localhost - - [03/Jul/2016:18:09:03 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 227 Create-Job successful-ok
localhost - - [03/Jul/2016:18:09:03 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 281 Send-Document successful-ok
localhost - - [03/Jul/2016:18:09:16 -0400] "POST /printers/HP_LaserJet_1018 HTTP/1.1" 200 423 Print-Job successful-ok
Run Code Online (Sandbox Code Playgroud)

以及工作 CUPS 页面的屏幕截图:

在此处输入图片说明

如何让服务器实际打印页面?

小智 1

我在 HP LaserJet 1020 上遇到了同样的问题。删除Printer-driver-gutenprint包解决了我的问题;看来当前版本已损坏。您可能还需要卸载cups,清除/etc/cups/目录并再次安装cups。


小智 0

我遇到了同样的问题 - 作业已成功添加,打印机(Brother MFC-J*)亮起并显示它正在显示屏上打印 - 但随后它只是完成而没有打印任何内容。

CUPS 也出现同样的症状。添加型号为“everywhere”(IPP Everywhere)的打印机后,页面打印出来了!因此 ipptool 必须与 IPP Everywhere 调整作业一起使用。