将 Ubuntu 16.04 升级到 18.04 后无法打印(HP MFC-7470DW)

将 Ubuntu 16.04 升级到 18.04 后无法打印(HP MFC-7470DW)

我刚刚将系统从 Ubuntu 16.04 LTS 升级到 18.04 LTS。升级后,我无法在 Brother MFC-J470DW 上打印。插入 (USB) 时可以找到打印机。但当我发送测试打印 (或任何其他文档) 时,它会短暂地出现在打印机作业列表中,并在几秒钟后完成,并在作业列表中显示成功的作业。

另一方面,从床身和进纸器进行扫描效果很好。

我已经在互联网上搜索了几天但目前还没有任何结果。

使用 CUPS 网络界面移除打印机后,我尝试从命令行重新安装驱动程序几次,方法是使用“设置”-->“打印机”以及从命令行使用 brother 的卸载工具。

还尝试了将模块列入黑名单的程序usblp

也许值得一提的是,在 16.04 中,我在 /etc/init.d 目录中添加了一个指向 cups 的 lpd 链接。这是我在 16.04 上修复的问题,但现在不再管用了。)

输出dmesg

[120902.496158] usb 1-1.2: new high-speed USB device number 13 using ehci-pci
[120902.609557] usb 1-1.2: New USB device found, idVendor=04f9, idProduct=02e8
[120902.609559] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[120902.609560] usb 1-1.2: Product: MFC-J470DW
[120902.609562] usb 1-1.2: Manufacturer: Brother
[120902.609563] usb 1-1.2: SerialNumber: BROM3F156149
[120902.612364] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 13 if 0 alt 0 proto 2 vid 0x04F9 pid 0x02E8

lsusb信息:

$ lsusb | grep Brother
Bus 001 Device 013: ID 04f9:02e8 Brother Industries, Ltd

权限似乎是正确的:

$ ls -l /dev/bus/usb/001/013
crw-rw-r--+ 1 root lp 189, 12 Oct 11 11:38 /dev/bus/usb/001/013

拔下并重新连接后,连接可能会发生变化,但清理和创建似乎在具有正确权限的情况下是正确的。

有什么想法下一步该尝试什么吗?

其他邮政似乎与此有关,不同的打印机存在同样的问题。

更新:

卸载并重新安装新的驱动程序后,在不同情况下(例如在打印机未连接/连接时安装、使用不同的驱动程序版本)打印机仍然无法工作。

我注意到的一些事情(可能相关也可能不相关):

  • synaptic 包管理器显示打印机驱动程序为 0 Kb

  • 原始打印到 /dev/usb/lpx 会使打印机唤醒,显示带有一些进度标记的“接收”消息,但即便如此它也不会打印。

我确定我使用的驱动程序与 Ubuntu 16.04 LTS 中的相同,仍然使用 CUPS 尽管版本不同,仍然将 init.d/lpd 链接到 init.d/cups,并检查并重新检查了 Brother 的所有要求。

更新:

经过一些认真的挖掘和测试后,我认为我将打印问题的范围缩小到了一些文件未找到的问题。

请注意 error_log 中未找到 icc 配置文件的错误。我不知道它有什么用处或它能做什么,但似乎是一个问题。

D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======BRHalfTonePattern=Diffusion BRMonoColor=Mono number-up=1 BRJpeg=Recommended BRDuplex=DuplexNoTumble noCollate PageSize=A4 BRColorMatching=Vivid BRContrast=0 BRBlue=0 BRColorEnhancement=OFF BRBrightness=0 BRGreen=0 BRMediaType=PlainDuplex BRDuplexMode=Normal BRSlowDrying=OFF BRColorPaperThick=Regular BRResolution=PlainNormal BRRed=0 BRBiDir=ON job-uuid=urn:uuid:3fcd853a-cee3-3cab-7b08-d5391119cf43 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1539641635 time-at-processing=1539644988 Copies=1
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======BRContrast=
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======-cont
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======-cont
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======BRHalfTonePattern=Diffusion BRMonoColor=Mono number-up=1 BRJpeg=Recommended BRDuplex=DuplexNoTumble noCollate PageSize=A4 BRColorMatching=Vivid BRContrast=0 BRBlue=0 BRColorEnhancement=OFF BRBrightness=0 BRGreen=0 BRMediaType=PlainDuplex BRDuplexMode=Normal BRSlowDrying=OFF BRColorPaperThick=Regular BRResolution=PlainNormal BRRed=0 BRBiDir=ON job-uuid=urn:uuid:3fcd853a-cee3-3cab-7b08-d5391119cf43 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1539641635 time-at-processing=1539644988 Copies=1
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======BRRed=
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======-red
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======-red
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======BRHalfTonePattern=Diffusion BRMonoColor=Mono number-up=1 BRJpeg=Recommended BRDuplex=DuplexNoTumble noCollate PageSize=A4 BRColorMatching=Vivid BRContrast=0 BRBlue=0 BRColorEnhancement=OFF BRBrightness=0 BRGreen=0 BRMediaType=PlainDuplex BRDuplexMode=Normal BRSlowDrying=OFF BRColorPaperThick=Regular BRResolution=PlainNormal BRRed=0 BRBiDir=ON job-uuid=urn:uuid:3fcd853a-cee3-3cab-7b08-d5391119cf43 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1539641635 time-at-processing=1539644988 Copies=1
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======BRGreen=
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======-green
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======-green
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======BRHalfTonePattern=Diffusion BRMonoColor=Mono number-up=1 BRJpeg=Recommended BRDuplex=DuplexNoTumble noCollate PageSize=A4 BRColorMatching=Vivid BRContrast=0 BRBlue=0 BRColorEnhancement=OFF BRBrightness=0 BRGreen=0 BRMediaType=PlainDuplex BRDuplexMode=Normal BRSlowDrying=OFF BRColorPaperThick=Regular BRResolution=PlainNormal BRRed=0 BRBiDir=ON job-uuid=urn:uuid:3fcd853a-cee3-3cab-7b08-d5391119cf43 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1539641635 time-at-processing=1539644988 Copies=1
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======BRBlue=
D [16/Oct/2018:01:09:48 +0200] [Job 6] DATA======-blue
D [16/Oct/2018:01:09:48 +0200] [Job 6] search_data======-blue
D [16/Oct/2018:01:09:48 +0200] [Job 6] ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_gray.icc 
D [16/Oct/2018:01:09:48 +0200] [Job 6] | ./base/gsicc_manage.c:2261: gsicc_init_iccmanager(): cannot find default icc profile
D [16/Oct/2018:01:09:48 +0200] [Job 6] ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_rgb.icc 
D [16/Oct/2018:01:09:48 +0200] [Job 6] | ./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile
D [16/Oct/2018:01:09:48 +0200] [Job 6] **** Unable to open the initial device, quitting.
D [16/Oct/2018:01:09:48 +0200] [Job 6] Sent 0 bytes...
D [16/Oct/2018:01:09:48 +0200] [Job 6] PID 9992 (/usr/lib/cups/filter/brother_lpdwrapper_mfcj470dw) exited with no errors.
D [16/Oct/2018:01:09:48 +0200] [Job 6] Waiting for read thread to exit...
D [16/Oct/2018:01:09:49 +0200] [Job 6] PID 9993 (/usr/lib/cups/backend/usb) exited with no errors.
D [16/Oct/2018:01:09:49 +0200] [Job 6] time-at-completed=1539644988
D [16/Oct/2018:01:09:49 +0200] cupsdMarkDirty(----S)
D [16/Oct/2018:01:09:49 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
I [16/Oct/2018:01:09:49 +0200] [Job 6] Job completed.
I [16/Oct/2018:01:09:49 +0200] Expiring subscriptions...

因此,该作业通过了 USB 怪癖和不同的过滤器,但在找到 ICC 配置文件时失败,我对此了解不够,无法推断,更不用说修复该问题了,但也许有人可以告诉我我是否走在正确的道路上或完全错过了这个问题?

磁盘上有一堆 icc 配置文件,但某些搜索路径设置不正确,或者我缺少一些必需的包。我完全陷入困境;有人能给我指明如何继续研究的方向吗?

谢谢

答案1

我试过这个答案对某些人有用:

sudo rmdir /usr/share/ghostscript/9.25/iccprofiles
sudo apt-get install --reinstall libgs9-common 

但它对我的 Brother DCP-7065DN 打印机不起作用,因为新克隆 16.04并于2018年10月14日升级至18.04。

重启后生效

清除 ghost 脚本有效,但必须重新启动后才能清除。然后甚至在你登录之前,之前无法打印的所有内容,突然都打印出来了。

这是一个巨大的安全问题!想象一下,一位经理在升级到 18.04 后尝试打印敏感文件,但失败了。这位经理放弃了,转而致电技术支持。另一位用户重新启动了计算机,甚至在他们登录之前,经理的报告就被吐出来供未经授权的员工查看。

初次重启后我就能正常打印了。

有类似问题的人

许多人在从 16.04 升级到 18.04 后遇到打印问题:

答案2

就是这样,谢谢你的回答。这正是我所需要的。

检查了 /usr/share/ghostscript/9.25/iccprofiles 目录;它是空的。按照医生的指示执行命令:

sudo rmdir /usr/share/ghostscript/9.25/iccprofiles
sudo apt-get install --reinstall libgs9-common

尝试运行测试打印。检查它是否有效。

供参考该作业的最后几条条目:

D [16/Oct/2018:13:03:42 +0200] [Job 8] Wrote 8192 bytes of print data...
D [16/Oct/2018:13:03:42 +0200] [Job 8] Read 8192 bytes of print data...
D [16/Oct/2018:13:03:42 +0200] [Job 8] Wrote 8192 bytes of print data...
D [16/Oct/2018:13:03:42 +0200] [Job 8] Read 3552 bytes of print data...
D [16/Oct/2018:13:03:42 +0200] [Job 8] Wrote 3552 bytes of print data...
D [16/Oct/2018:13:03:42 +0200] [Job 8] Sent 2130460 bytes...
D [16/Oct/2018:13:03:42 +0200] [Job 8] PID 13368 (/usr/lib/cups/filter/brother_lpdwrapper_mfcj470dw) exited with no errors.
D [16/Oct/2018:13:03:42 +0200] [Job 8] Waiting for read thread to exit...
D [16/Oct/2018:13:03:42 +0200] [Job 8] PID 13369 (/usr/lib/cups/backend/usb) exited with no errors.
D [16/Oct/2018:13:03:42 +0200] [Job 8] time-at-completed=1539687822
D [16/Oct/2018:13:03:42 +0200] cupsdMarkDirty(----S)
D [16/Oct/2018:13:03:42 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
I [16/Oct/2018:13:03:42 +0200] [Job 8] Job completed.

遗憾的是我无法将您的回答标记为有用(声誉太低)。

相关内容