如何让我的打印机真正打印,而不仅仅是接受打印作业并将其从队列中删除?

如何让我的打印机真正打印,而不仅仅是接受打印作业并将其从队列中删除?

我安装了一台带有 Raspbian 的全新 Raspberry Pi 4,并想将我的 Brother HL-2240D 打印机连接到它。我使用了提供的驱动程序安装工具https://support.brother.com/g/b/downloadlist.aspx?c=eu_ot&lang=en&prod=hl2240d_all&os=128并按照步骤安装 lpr 和 cupswrapper。整个交易过程是这样的:

sudo bash linux-brprinter-installer-2.2.2-2 
Input model name ->HL2240D

You are going to install following packages.
   hl2240dlpr-2.1.1-1.i386.deb
   cupswrapperHL2240D-2.0.4-2.i386.deb
OK? [y/N] ->y

dpkg -x hl2240dlpr-2.1.1-1.i386.deb /
dpkg -x cupswrapperHL2240D-2.0.4-2.i386.deb /
dpkg-deb: building package 'hl2240dlpr' in 'hl2240dlpr-2.1.1-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hl2240dlpr-2.1.1-1a.i386.deb
dpkg-deb: building package 'cupswrapperhl2240d' in 'cupswrapperHL2240D-2.0.4-2a.i386.deb'.
dpkg -b ./brother_driver_packdir cupswrapperHL2240D-2.0.4-2a.i386.deb
dpkg -i --force-all hl2240dlpr-2.1.1-1a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (armhf)
(Reading database ... 99549 files and directories currently installed.)
Preparing to unpack hl2240dlpr-2.1.1-1a.i386.deb ...
/var/lib/dpkg/info/hl2240dlpr.prerm: 3: /var/lib/dpkg/info/hl2240dlpr.prerm: /usr/local/Brother/Printer/HL2240D/inf/braddprinter: Exec format error
Unpacking hl2240dlpr:i386 (2.1.1-1) over (2.1.1-1) ...
Setting up hl2240dlpr:i386 (2.1.1-1) ...
/var/lib/dpkg/info/hl2240dlpr.postinst: 3: /var/lib/dpkg/info/hl2240dlpr.postinst: /usr/local/Brother/Printer/HL2240D/inf/braddprinter: Exec format error
dpkg -i --force-all cupswrapperHL2240D-2.0.4-2a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (armhf)
(Reading database ... 99549 files and directories currently installed.)
Preparing to unpack cupswrapperHL2240D-2.0.4-2a.i386.deb ...
Restarting cups (via systemctl): cups.service.
Unpacking cupswrapperhl2240d:i386 (2.0.4-2) over (2.0.4-2) ...
Setting up cupswrapperhl2240d:i386 (2.0.4-2) ...
Restarting cups (via systemctl): cups.service.
#
Will you specify the Device URI? [Y/n] ->n

Test Print? [y/N] ->y

wait 5s.
lpr -P HL2240D /usr/share/cups/data/testprint
linux-brprinter-installer-2.2.2-2: line 2976: lpr: command not found
Hit Enter/Return key.   

之后打印机出现在 Raspbian 打印机配置和 CUPS 中,所以我尝试点击测试打印按钮以及通过 发送一个简单的文本文件lp -d HL2240D /usr/share/cups/data/testprint。所有这些都有效,队列对我的尝试进行计数并在几秒钟后被清除,但打印机不会吐出任何页面。

lpstat -p显示我的打印机处于空闲状态,如果我拔下 USB 并发送另一个打印请求,它会显示Waiting for the printer to become available,插入后,它变得可用,但不打印。

我做错了什么以及我还可以检查什么?

答案1

我用于解决问题的解决方案是简单地使用与 Brother 提供的驱动程序不同的驱动程序。正如您可以继续阅读的那样http://openprinting.org/printer/Brother/Brother-HL-2240D打印机与驱动程序兼容hpijs-pcl5e,因此我PPD从那里下载了文件并进行了快速操作sudo apt install printer-driver-hpijs,打印机正在工作。

相关内容