Ubuntu 22.04下Brother HL-L2350DW打印机IPP无驱动打印问题求助
大家好,我有一台Brother HL-L2350DW打印机,它支持和智能手机联动,我的Pixel 7不用额外设置就能直接无线打印。现在我想在Ubuntu桌面环境下,利用手机用的这个IPP无线打印接口实现打印,但折腾了半天遇到了问题,想请教下大家怎么解决。
之前我在亚马逊的评论区看到有用户分享Linux下的设置经验,其中DB87的回复给了我一些参考:
Out of the box, I was able to successfully install drivers and wirelessly print from two Mac 10.10 and 10.11 devices in my house. However, attempting to set up Google Cloud Print was met with repeat failure. I was also unable to install the printer wirelessly on my Linux desktop (Manjaro 4.19.13). I attempted to register Google Cloud Print from the settings menu of Chrome browsers on Mac, Linux, and Windows. I also tried through the Brother web interface. If you are continually being asked to press OK for registration, and being met with an "Unable to Connect to Google. Please check your network" error message, you need to update the firmware.
Once updated, both my Google Cloud Print and Linux driver problems disappeared. For Manjaro, I am using the brother-hll2350dw driver v4.0.0-1 from the AUR. For Google Cloud Print, you need to log in via the IP of your printer (default password is "initpass"), go to Network > Protocol and click on 'Advanced Settings' for Google Cloud Print, and follow the instructions for registering. I was lucky to have a computer successfully connect out of the box in order to update the firmware. If you don't have a computer that can connect without the firmware update, I'm not sure how you will be able to update the firmware. Maybe connecting directly over USB will circumvent the connection issues.
As far as printing goes, it's a cheap, fast, monochrome laser printer. It does everything I need, and seems well built. This is a five-star printer except for the connection issues and requiring a firmware update right out the box, which knocks it to a 4-star in my book.
我自己在Ubuntu 22.04上尝试了以下操作:
首先用lpstat -l -e查看打印机发现情况,输出显示系统已经找到了我的HL-L2350DW和另一台MFC打印机的IPP地址:
james@james-NUC7i5DNHE:~$ lpstat -l -e Brother_HL_L2350DW_series network none ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/ Brother_MFC_L2740DW_series network none ipp://Brother%20MFC-L2740DW%20series._ipp._tcp.local/ CUPS-BRF-Printer-HL permanent ipp://localhost/printers/CUPS-BRF-Printer-HL cups-brf:/ CUPS-BRF-Printer-MFC permanent ipp://localhost/printers/CUPS-BRF-Printer-MFC cups-brf:/
但当我通过系统设置的「打印机」选项添加打印机时,虽然能搜到设备,但会弹出“Failed to add new printer”的错误提示(本来想附截图的)。
之后我尝试停止并卸载了cups-browsed:
james@james-NUC7i5DNHE:~$ systemctl stop cups-browsed james@james-NUC7i5DNHE:~$ sudo apt purge cups-browsed Reading package lists... Done Building dependency tree... Done Reading state information... Done The following package was automatically installed and is no longer required: libllvm13 Use 'sudo apt autoremove' to remove it. The following packages will be REMOVED: cups-browsed* 0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded. After this operation, 387 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 236183 files and directories currently installed.) Removing cups-browsed (1.28.15-0ubuntu1.2) ... Processing triggers for man-db (2.10.2-1) ... (Reading database ... 236171 files and directories currently installed.) Purging configuration files for cups-browsed (1.28.15-0ubuntu1.2) ...
再次查看打印机列表,只剩HL-L2350DW的条目了:
james@james-NUC7i5DNHE:~$ lpstat -l -e Brother_HL_L2350DW_series network none ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/
但测试打印的时候提示目标不接受任务:
james@james-NUC7i5DNHE:~$ lp -d Brother_HL_L2350DW_series /etc/nsswitch.conf lp: Destination "Brother_HL_L2350DW_series" is not accepting jobs.
后来我尝试手动创建打印队列:
james@james-NUC7i5DNHE:~$ lpadmin -p L2350DW -v "ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/" -E -m everywhere
然后测试打印,这次成功出了任务ID:
james@james-NUC7i5DNHE:~$ lp -d L2350DW /etc/nsswitch.conf request id is L2350DW-15 (1 file(s))
不过这里有个疑问:为什么通过系统设置添加会失败,但手动用命令行创建队列就能成功?另外有没有更简便的方式,不用命令行就能搞定?还有,是否需要参考DB87的建议去更新打印机固件?希望有经验的朋友能帮我解答下。
备注:内容来源于stack exchange,提问作者simgineer

