兄弟打印机 - cups-browsed 未找到合适的目标主机

兄弟打印机 - cups-browsed 未找到合适的目标主机

我刚刚经历了从使用了 18 年的计算机系统到新系统的痛苦迁移。我有一个很棒的计划,但是计划往往会在实施之前非常完美。没有意识到不能只从非 UEFI 系统的镜像集中拔下驱动器,然后将其插入 UEFI 系统并期望它能正常工作,这导致了几个小时的痛苦。但是,我离题了。
我读过其他人遇到的与此打印错误消息相关的一些问题。我清除了 cups-browsed,手动配置了我的打印机,但无济于事。我解决的打印机的一个初始问题是 VPN 不允许我访问我的打印机。我将子网列入白名单并解决了该问题。打印机是 Brother HL-L2360DW,Brother 提供了一个脚本来在 Linux 机器上安装打印机。它在我的旧系统上运行良好,但在这个系统上却不太好。
我在这台机器上运行的 Ubuntu 版本与我在旧系统上运行的相同。如果与此相关的话,此系统配备 Gigabyte AORUS X570 Pro MB,运行 AMD Ryzen 5 5600G。由于上述问题,安装是从最新的 Ubuntu 20.04 ISO 全新安装的。打印机已连接网络,我可以毫无问题地 ping 打印机。此外,我可以从平板电脑上毫无问题地打印到它。
任何帮助都将不胜感激。
必须睡一觉...回来。因此,我再次删除了 cups_browsed 并尝试了各种方法来安装打印机。IPP(有人能告诉我 IP 地址字段后的队列字段是什么吗??),LPD,除了上面的错误消息之外,我还收到各种错误消息。有一次,在手动添加打印机进行 IPP 打印后,它指示它已后台打印了 97%,只是坐在那里什么也不做。因此,我最终尝试通过 Web 界面而不是标准“打印机”选项来安装打印机。在输入 lpd 打印所需的所有信息并按下“添加打印机”后,该过程挂起了,只是不停地搅动,没有任何进展(这正是我感觉我遇到这个问题的原因)。我很确定这不是网络或硬件问题,但我在安装过程中一定搞砸了 CUPS 中的某些东西。
再次,任何帮助都将不胜感激。谢谢,我为 cups 设置了扩展日志记录,以下是该日志的摘录:(它非常大,所以我没有把它全部放进去)

D [20/Feb/2022:13:44:16 -0800] [Client 9] Returning IPP successful-ok for Cancel-Subscription (/) from localhost.
D [20/Feb/2022:13:44:16 -0800] [Client 9] Content-Length: 75
D [20/Feb/2022:13:44:16 -0800] [Client 9] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [20/Feb/2022:13:44:16 -0800] [Client 9] con->http=0x55c7bc9d5650
D [20/Feb/2022:13:44:16 -0800] [Client 9] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=75, response=0x55c7bc9bee90(IPP_STATE_DATA), pipe_pid=0, file=-1
D [20/Feb/2022:13:44:16 -0800] [Client 9] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [20/Feb/2022:13:44:16 -0800] [Client 9] bytes=0, http_state=0, data_remaining=75
D [20/Feb/2022:13:44:16 -0800] [Client 9] Flushing write buffer.
D [20/Feb/2022:13:44:16 -0800] [Client 9] New state is HTTP_STATE_WAITING
D [20/Feb/2022:13:44:16 -0800] [Client 9] Waiting for request.
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [20/Feb/2022:13:44:16 -0800] [Notifier] state=-1
D [20/Feb/2022:13:44:16 -0800] [Notifier] ippReadFile() returned IPP_ERROR!
D [20/Feb/2022:13:44:16 -0800] [Client 9] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [20/Feb/2022:13:44:16 -0800] [Client 9] Closing connection.
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [20/Feb/2022:13:44:16 -0800] [Client 10] Server address is "/run/cups/cups.sock".
D [20/Feb/2022:13:44:16 -0800] [Client 10] Accepted from localhost (Domain)
D [20/Feb/2022:13:44:16 -0800] [Client 10] Waiting for request.
D [20/Feb/2022:13:44:16 -0800] PID 2076 (/usr/lib/cups/notifier/dbus) exited with no errors.
D [20/Feb/2022:13:44:16 -0800] [Client 10] POST / HTTP/1.1
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [20/Feb/2022:13:44:16 -0800] [Client 10] Read: status=200, state=6
D [20/Feb/2022:13:44:16 -0800] [Client 10] No authentication data provided.
D [20/Feb/2022:13:44:16 -0800] [Client 10] 2.0 Cancel-Subscription 10
D [20/Feb/2022:13:44:16 -0800] Cancel-Subscription /
D [20/Feb/2022:13:44:16 -0800] Cancel-Subscription client-error-not-found: Subscription #312 does not exist.
D [20/Feb/2022:13:44:16 -0800] [Client 10] Returning IPP client-error-not-found for Cancel-Subscription (/) from localhost.
D [20/Feb/2022:13:44:16 -0800] [Client 10] Content-Length: 127
D [20/Feb/2022:13:44:16 -0800] [Client 10] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [20/Feb/2022:13:44:16 -0800] [Client 10] con->http=0x55c7bc9d5650
D [20/Feb/2022:13:44:16 -0800] [Client 10] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=127, response=0x55c7bc9cf890(IPP_STATE_DATA), pipe_pid=0, file=-1
D [20/Feb/2022:13:44:16 -0800] [Client 10] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [20/Feb/2022:13:44:16 -0800] [Client 10] bytes=0, http_state=0, data_remaining=127
D [20/Feb/2022:13:44:16 -0800] [Client 10] Flushing write buffer.
D [20/Feb/2022:13:44:16 -0800] [Client 10] New state is HTTP_STATE_WAITING
D [20/Feb/2022:13:44:16 -0800] [Client 10] Waiting for request.
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [20/Feb/2022:13:44:16 -0800] [Client 10] HTTP_STATE_WAITING Closing for error 104 (Connection reset by peer)
D [20/Feb/2022:13:44:16 -0800] [Client 10] Closing connection.
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [20/Feb/2022:13:44:16 -0800] [Client 3] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [20/Feb/2022:13:44:16 -0800] [Client 3] Closing connection.
D [20/Feb/2022:13:44:16 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [20/Feb/2022:13:44:17 -0800] Expiring subscriptions...
I [20/Feb/2022:13:44:23 -0800] Saving printers.conf...
I [20/Feb/2022:13:44:23 -0800] Generating printcap /run/cups/printcap...
I [20/Feb/2022:13:44:23 -0800] Saving subscriptions.conf...
D [20/Feb/2022:13:44:23 -0800] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
I [20/Feb/2022:13:44:23 -0800] Expiring subscriptions..    

这是我从以下命令得到的输出

avahi-browse -rt _ipp._tcp  
+ enp3s0 IPv4 Brother HL-L2360D series Internet Printer local  
Failed to resolve service 'Brother HL-L2360D series' of type '_ipp._tcp' in domain 'local': Timeout reached

答案1

嗯,问题出在原装 Brother 打印机 (HL-L2360DW) 上。它没有坏,但打印机无法再使用我之前使用的任何驱动程序。作为测试,我借了一台驱动程序列在 Ubuntu 驱动程序列表中的打印机 (Brother DCP7065DN),它工作正常。尽管我的原装打印机可以在旧的 20.04 系统上运行,但在迁移到最新 ISO 版本 20.04 时发生了一些变化,导致我的原装打印机无法在新平台上运行。这是另一个意料之外的问题和费用,但我希望这是最后一个。

相关内容