打印机 Brother DCP 1610W 在 Xubuntu 16.04 下无法工作

打印机 Brother DCP 1610W 在 Xubuntu 16.04 下无法工作

我尝试使用 Xubuntu 16.04 在桌面上打印一些东西,但没有成功。奇怪的是,它在我的笔记本电脑上运行良好(使用相同版本的操作系统、相同的驱动程序等)。

以下是

tail -f /var/log/syslog

插入打印机之前和之后:

Aug 19 11:50:26 mypc kernel: [  124.382330] usblp 3-10.3:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04F9 pid 0x035B
Aug 19 11:50:50 mypc org.freedesktop.PackageKit[3064]: DEBUG:Checking for inactivity (30s)
Aug 19 11:51:20 mypc org.freedesktop.PackageKit[3064]: DEBUG:Checking for inactivity (60s)
Aug 19 11:51:36 mypc kernel: [  193.883546] usb 3-10.3: USB disconnect, device number 5
Aug 19 11:51:36 mypc kernel: [  193.883747] usblp1: removed
Aug 19 11:51:36 mypc udev-configure-printer[5268]: remove /devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10.3
Aug 19 11:51:36 mypc udev-configure-printer[5268]: URI of detected printer: usb://Brother/DCP-1610W%20series?serial=E74230B5N526398, normalized: brother dcp 1610w series serial e74230b5n526398
Aug 19 11:51:36 mypc udev-configure-printer[5268]: URI of print queue: usb://Brother/DCP-1610W%20series?serial=E74230B5N526398, normalized: brother dcp 1610w series serial e74230b5n526398
Aug 19 11:51:36 mypc udev-configure-printer[5268]: Queue ipp://localhost/printers/Brother-DCP-1610W-series has matching device URI
Aug 19 11:51:36 mypc udev-configure-printer[5268]: Disabled printer ipp://localhost/printers/Brother-DCP-1610W-series as the corresponding device was unplugged or turned off
Aug 19 11:51:40 mypc colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
Aug 19 11:51:43 mypc kernel: [  200.962335] usb 3-10.3: new high-speed USB device number 6 using xhci_hcd
Aug 19 11:51:43 mypc kernel: [  201.051201] usb 3-10.3: New USB device found, idVendor=04f9, idProduct=035b
Aug 19 11:51:43 mypc kernel: [  201.051204] usb 3-10.3: New USB device strings: Mfr=0, Product=0, SerialNumber=3
Aug 19 11:51:43 mypc kernel: [  201.051205] usb 3-10.3: SerialNumber: E74230B5N526398
Aug 19 11:51:43 mypc kernel: [  201.053024] usblp 3-10.3:1.0: usblp1: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x035B
Aug 19 11:51:43 mypc systemd[1]: Starting Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:14.0-usb3-3\x2d10-3\x2d10.3)...
Aug 19 11:51:43 mypc udev-configure-printer[5285]: add /devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10.3
Aug 19 11:51:43 mypc udev-configure-printer[5285]: device devpath is /devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10.3
Aug 19 11:51:43 mypc udev-configure-printer[5285]: MFG:Brother MDL:DCP-1610W series SERN:- serial:E74230B5N526398
Aug 19 11:51:43 mypc kernel: [  201.078847] audit_printk_skb: 63 callbacks suppressed
Aug 19 11:51:43 mypc kernel: [  201.078850] audit: type=1400 audit(1471603903.429:118): apparmor="DENIED" operation="open" profile="/usr/sbin/ippusbxd" name="/etc/ld.so.preload" pid=5299 comm="ippusbxd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Aug 19 11:51:47 mypc colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
Aug 19 11:51:48 mypc kernel: [  206.136838] audit: type=1400 audit(1471603908.485:119): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=5309 comm="cups-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Aug 19 11:51:48 mypc kernel: [  206.137116] audit: type=1400 audit(1471603908.485:120): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=5309 comm="cups-deviced" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Aug 19 11:51:48 mypc kernel: [  206.140017] audit: type=1400 audit(1471603908.489:121): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=5311 comm="ipp" requested_mask="r" denied_mask="r" fsuid=7 ouid=0
Aug 19 11:51:48 mypc kernel: [  206.145184] audit: type=1400 audit(1471603908.493:122): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=5314 comm="serial" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Aug 19 11:51:48 mypc kernel: [  206.148449] audit: type=1400 audit(1471603908.497:123): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=5316 comm="ipps" requested_mask="r" denied_mask="r" fsuid=7 ouid=0
Aug 19 11:51:48 mypc kernel: [  206.150067] audit: type=1400 audit(1471603908.497:124): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=5320 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Aug 19 11:51:48 mypc kernel: [  206.156124] usblp1: removed
Aug 19 11:51:48 mypc kernel: [  206.163011] usblp 3-10.3:1.0: usblp1: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x035B
Aug 19 11:51:48 mypc hp[5313]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Aug 19 11:51:48 mypc python3: io/hpmud/pp.c 627: unable to read device-id ret=-1
Aug 19 11:51:48 mypc udev-configure-printer[5285]: URI contains USB serial number
Aug 19 11:51:48 mypc udev-configure-printer[5285]: URI match: usb://Brother/DCP-1610W%20series?serial=E74230B5N526398
Aug 19 11:51:48 mypc udev-configure-printer[5285]: URI of detected printer: usb://Brother/DCP-1610W%20series?serial=E74230B5N526398, normalized: brother dcp 1610w series serial e74230b5n526398
Aug 19 11:51:48 mypc udev-configure-printer[5285]: URI of print queue: usb://Brother/DCP-1610W%20series?serial=E74230B5N526398, normalized: brother dcp 1610w series serial e74230b5n526398
Aug 19 11:51:48 mypc udev-configure-printer[5285]: Queue ipp://localhost/printers/Brother-DCP-1610W-series has matching device URI
Aug 19 11:51:48 mypc udev-configure-printer[5285]: Re-enabled printer ipp://localhost/printers/Brother-DCP-1610W-series
Aug 19 11:51:48 mypc systemd[1]: Started Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:14.0-usb3-3\x2d10-3\x2d10.3).
Aug 19 11:51:50 mypc org.freedesktop.PackageKit[3064]: DEBUG:Checking for inactivity (90s)

我的打印机是 Brother-DCP 1610w。我可以完美地使用它进行扫描,只是打印功能不正常。在“打印机”下,我看到打印机带有绿色复选标记,但在要求打印某些内容后,什么也没有发生。如果我转到“打印机”,我会看到作业显示为“已完成”。

知道可能发生了什么吗?我应该如何修复它?我显然已经重新启动了计算机和打印机。我还安装了以下驱动程序:下载 - DCP-1610W | support.brother.com

编辑:sudo cat /etc/cups/printers.conf在打印机关闭时执行此操作会给我以下结果:

# Printer configuration file for CUPS v2.1.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter Brother-DCP-1610W-series>
UUID urn:uuid:3f49b902-e331-31f5-558a-cf8be931977d
Info Brother DCP-1610W series
Location mypc
MakeModel Brother DCP-1610W for CUPS
DeviceURI usb://Brother/DCP-1610W%20series?serial=E74230B5N526398
State Stopped
StateMessage Unplugged or turned off
StateTime 1471611395
ConfigTime 1471603824
Reason paused
Type 8392708
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</DefaultPrinter>
<Printer DCP1610W>
UUID urn:uuid:b62f3751-a91c-39b0-59ee-2fb82efd5755
Info DCP1610W
MakeModel Brother DCP-1610W for CUPS
DeviceURI usb://Brother/DCP-1610W%20series?serial=E74230B5N526398
State Stopped
StateMessage Unplugged or turned off
StateTime 1471611395
ConfigTime 1471606686
Reason paused
Type 8392708
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

打开打印机后,我得到:

# Printer configuration file for CUPS v2.1.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter Brother-DCP-1610W-series>
UUID urn:uuid:3f49b902-e331-31f5-558a-cf8be931977d
Info Brother DCP-1610W series
Location mypc
MakeModel Brother DCP-1610W for CUPS
DeviceURI usb://Brother/DCP-1610W%20series?serial=E74230B5N526398
State Idle
StateTime 1471702911
ConfigTime 1471603824
Type 8392708
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</DefaultPrinter>
<Printer DCP1610W>
UUID urn:uuid:b62f3751-a91c-39b0-59ee-2fb82efd5755
Info DCP1610W
MakeModel Brother DCP-1610W for CUPS
DeviceURI usb://Brother/DCP-1610W%20series?serial=E74230B5N526398
State Idle
StateTime 1471702911
ConfigTime 1471606686
Type 8392708
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

答案1

您的 1610 打印机列出两次,/etc/cups/printers.conf每次都有不同的 UUID。

在我的配置文件中,Brother打印机仅列出一次:

# Printer configuration file for CUPS v2.1.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter DCP7065DN>
UUID urn:uuidzf3a944e2-df3b-3462-73f0-bf2d45b99cdf
Info DCP7065DN
MakeModel Brother DCP7065DN for CUPS
DeviceURI usb://Brother/DCP-7065DN?serial=U62712M1N423077
State Idle
StateTime 1472268209
ConfigTime 1470519913
Type 8392724
Accepting Ves
Shared Ves
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</DefaultPrinter>

我将从<Printer DCP1610W>文件的最后一行开始删除您的第二台打印机</Printer>

编辑之前/etc/cups/printers.conf你需要使用以下命令停止 cupsd 服务:

sudo systemctl stop cups

然后进行编辑。保存配置文件后,使用以下命令重新启动 cupsd 服务:

sudo systemctl start cups

需要注意的一点是,我运行的是 Ubuntu 16.04,而不是 Xubuntu 16.04。

答案2

我相信您已经发现,CUPS 至少是一个非常挑剔的程序。

看起来好像您的打印机已被两次添加到 CUPS 打印机注册表,这可能会导致此挂断。

幸运的是,你可以从 GUI 中解决这个问题:

  1. 从计算机上的设置程序进入打印机设置菜单。
  2. 拔掉有问题的打印机的插头。
  3. 从设置菜单中删除有问题的打印机。
  4. 关闭并重新打开设置菜单,确保它确实消失了。如果没有,请再次将其删除。
  5. 重新插入打印机,系统会自动检测。请勿手动添加打印机。

请务必重新启动可能需要打印机的所有程序,以便它们可以刷新并获取较新的(且正确的)打印机列表。


或者,您可以从 CUPS 中删除打印机控制网页*. 从那里,导航到“打印机”选项卡并删除受影响的打印机和任何类似的条目。

此外,当您在此面板中时,您应该查看工作选项卡并确保打印机(重新)连接后不会执行打印作业的回流。

确定一切准备就绪后,重新插入打印机并打印一份测试文档。几秒钟后应该就可以打印了。

* 此链接将带您进入您当地的 CUPS 管理面板,位于localhost:631。它仅供您方便使用。

相关内容