![通过 Samba 的网络打印机在 lubuntu 15.10 上无法运行](https://linux22.com/image/988410/%E9%80%9A%E8%BF%87%20Samba%20%E7%9A%84%E7%BD%91%E7%BB%9C%E6%89%93%E5%8D%B0%E6%9C%BA%E5%9C%A8%20lubuntu%2015.10%20%E4%B8%8A%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C.png)
打印机总是返回“过滤失败”错误。我尝试重新安装它几次。甚至尝试使用不同版本的 hplip(3.15.7、3.15.11 和 3.16.2),但问题仍然存在。
这是错误日志/var/log/CUPS/error_log
E [04/Mar/2016:14:30:51 +0530] [Job 28] Job stopped due to filter errors; please consult the error_log file for details.
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[22]="DEVICE_URI=smb://MSHOME/DEEPIKA/HPLaserJ.5"
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[23]="PRINTER_INFO=HP LaserJet 1020"
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[24]="PRINTER_LOCATION="
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[25]="PRINTER=HP-LaserJet-1020"
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[26]="PRINTER_STATE_REASONS=none"
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[27]="CUPS_FILETYPE=document"
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[28]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [04/Mar/2016:14:30:51 +0530] [Job 28] envp[29]="AUTH_INFO_REQUIRED=none"
D [04/Mar/2016:14:30:51 +0530] [Job 28] Start rendering...
D [04/Mar/2016:14:30:51 +0530] [Job 28] Set job-printer-state-message to "Start rendering...", current level=INFO
D [04/Mar/2016:14:30:51 +0530] [Job 28] Processing page 1...
D [04/Mar/2016:14:30:51 +0530] [Job 28] Set job-printer-state-message to "Processing page 1...", current level=INFO
D [04/Mar/2016:14:30:51 +0530] [Job 28] STATE: +hplip.plugin-error
D [04/Mar/2016:14:30:51 +0530] [Job 28] prnt/hpcups/HPCupsFilter.cpp 486: m_Job initialization failed with error = 48
D [04/Mar/2016:14:30:51 +0530] [Job 28] PID 19767 (/usr/lib/cups/filter/hpcups) stopped with status 1.
D [04/Mar/2016:14:30:51 +0530] [Job 28] Hint: Try setting the LogLevel to "debug" to find out more.
D [04/Mar/2016:14:30:51 +0530] [Job 28] Processing page 2...
D [04/Mar/2016:14:30:51 +0530] [Job 28] PID 19768 (/usr/lib/cups/backend/smb) exited with no errors.
D [04/Mar/2016:14:30:51 +0530] [Job 28] Rendering completed
D [04/Mar/2016:14:30:51 +0530] [Job 28] PID 19766 (/usr/lib/cups/filter/gstoraster) exited with no errors.
D [04/Mar/2016:14:30:51 +0530] [Job 28] End of messages
D [04/Mar/2016:14:30:51 +0530] [Job 28] printer-state=3(idle)
D [04/Mar/2016:14:30:51 +0530] [Job 28] printer-state-message="Rendering completed"
D [04/Mar/2016:14:30:51 +0530] [Job 28] printer-state-reasons=hplip.plugin-error
我要疯了 :/ 请有人建议如何解决这个问题。
答案1
事实证明,问题出在 hplip 插件本身。无论我尝试过什么版本,似乎都无法与 HP LaserJet 1020 配合使用。
通过使用 synaptic 包管理器安装“foomatic-db”包解决了该问题。不要安装“foomatic-filters”。之前我安装了两者 - 因为错误是过滤器失败。Foomatic-filters 与 CUPS 冲突。
安装“foomatic-db”后,我通过 samba 使用 foomatic 驱动程序(而不是 hpcups)重新安装了 Windows 网络打印机,一切正常。