AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1082892
Accepted
G3ck0___
G3ck0___
Asked: 2018-10-12 02:49:10 +0800 CST2018-10-12 02:49:10 +0800 CST 2018-10-12 02:49:10 +0800 CST

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

  • 772

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

另一方面,扫描工作正常,从床和进纸器。

我已经在互联网上搜索了几天,但到目前为止没有任何效果。

在使用 CUPS Web 界面删除打印机后,我尝试从命令行重新安装驱动程序几次,方法是使用 Settings-->Printers 并从命令行使用兄弟的卸载工具。

还尝试了将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

permssions 似乎是正确的:

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

同样在拔下并重新连接后,连接可能会改变,但清理和创建似乎是正确的,具有正确的权限。

任何想法接下来要尝试什么?

另一个帖子似乎与此相关,不同的打印机存在相同的问题。

更新:

经过一些卸载和重新安装新驱动程序后,在打印机未连接/未连接时安装等不同条件下,使用不同的驱动程序版本,打印机仍然无法工作。

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

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

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

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

更新:

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

请注意 error_log 中的 icc profile not found 错误。我不知道它需要什么或它做什么,但似乎是一个问题。

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 配置文件,但是某些搜索路径设置不正确,或者我缺少一些必需的软件包。在这里,我完全被困住了;谁能给我一个关于如何继续研究的方向?

谢谢

drivers printing usb brother cups-lpd
  • 2 2 个回答
  • 1568 Views

2 个回答

  • Voted
  1. Best Answer
    WinEunuuchs2Unix
    2018-10-16T16:34:32+08:002018-10-16T16:34:32+08:00

    我尝试了这个对某些人有用的答案:

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

    但在 2018 年 10 月 14 日全新克隆 16.04并升级到 18.04后,Brother DCP-7065DN 打印机对我不起作用。

    重启工作后

    清除幽灵脚本有效,但直到您重新启动。然后,甚至在您登录之前,以前无法打印的所有内容都会突然打印出来。

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

    初次重新启动后,我能够正常打印。

    其他有类似问题的人

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

    • 打印机“过滤失败”
    • 分发升级后打印机不工作
    • 将 16.04 升级到 18.04 后打印机停止工作
    • Ubuntu 18.04:打印机不适用于大多数应用程序(PDF、evince、Firefox...)
    • 将 16.04 升级到 18.04 后打印机停止工作
    • Brother打印机升级到18.04后打印垃圾
    • Epson RX620 升级到 18.04 LTS 后无法打印
    • Ubuntu 18.04 LTS -- 打印服务不可用
    • 升级到 Ubuntu 18.04.1 LTS 现在无法打印
    • 2
  2. G3ck0___
    2018-10-17T03:11:20+08:002018-10-17T03:11:20+08:00

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

    检查 /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.
    

    可惜我无法将您的答案标记为有用(声誉太低)。

    • 0

相关问题

  • 如何从命令行重置 USB 设备?

  • 如何在 Ubuntu 中设置与 Windows 7 机器的打印机共享?

  • 类似于 Eyefinity 的东西?

  • 在哪里可以找到 Brother HL-2170W 64 位打印机驱动程序?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve