![HP LaserJet Pro MFP m26nw 无法在 Linux Mint 19 上作为网络打印机进行打印](https://linux22.com/image/148052/HP%20LaserJet%20Pro%20MFP%20m26nw%20%E6%97%A0%E6%B3%95%E5%9C%A8%20Linux%20Mint%2019%20%E4%B8%8A%E4%BD%9C%E4%B8%BA%E7%BD%91%E7%BB%9C%E6%89%93%E5%8D%B0%E6%9C%BA%E8%BF%9B%E8%A1%8C%E6%89%93%E5%8D%B0.png)
我可以通过 USB 让它工作,但我们真的希望它能在网络上运行。
打印机是 HP LaserJet Pro MFP m26nw,操作系统是 Mint 19.1 64 位 Mate。
安装后,测试页作业更改为“已停止”状态,并弹出错误,提示“处理文档‘测试页’时出现问题”。
这是日志输出:
Feb 12 14:27:01 desktop systemd[1]: Started CUPS Scheduler.
Feb 12 15:15:36 desktop /hpfax[5157]: [5157]: error: Failed to create /var/spool/cups/tmp/.hplip
Feb 12 15:16:48 desktop hpcups[5243]: prnt/hpcups/Hbpl1.cpp 52: Hbpl1 constructor : m_szLanguage = HBPL1
Feb 12 15:16:48 desktop hpcups[5243]: common/utils.c 69: unable to open /var/lib/hp/hplip.state: No such file or directory
Feb 12 15:16:48 desktop hpcups[5243]: common/utils.c 119: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Feb 12 15:16:48 desktop hpcups[5243]: common/utils.c 157: Plugin version is not matching
Feb 12 15:16:48 desktop hpcups[5243]: prnt/hpcups/HPCupsFilter.cpp 486: m_Job initialization failed with error = 48
Feb 12 15:17:53 desktop hpcups[5372]: prnt/hpcups/Hbpl1.cpp 52: Hbpl1 constructor : m_szLanguage = HBPL1
Feb 12 15:17:53 desktop hpcups[5372]: common/utils.c 69: unable to open /var/lib/hp/hplip.state: No such file or directory
Feb 12 15:17:53 desktop hpcups[5372]: common/utils.c 119: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Feb 12 15:17:53 desktop hpcups[5372]: common/utils.c 157: Plugin version is not matching
Feb 12 15:17:53 desktop hpcups[5372]: prnt/hpcups/HPCupsFilter.cpp 486: m_Job initialization failed with error = 48
Feb 12 15:18:47 desktop systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 15:18:47 desktop systemd[1]: cups.service: Failed with result 'exit-code'.
Feb 12 15:18:47 desktop systemd[1]: cups.service: Service hold-off time over, scheduling restart.
Feb 12 15:18:47 desktop systemd[1]: cups.service: Scheduled restart job, restart counter is at 1.
Feb 12 15:19:04 desktop systemd[1]: Stopped CUPS Scheduler.
Feb 12 15:19:04 desktop systemd[1]: Started CUPS Scheduler.
Feb 12 15:27:16 desktop /hpfax[5506]: [5506]: error: Failed to create /var/spool/cups/tmp/.hplip
Feb 12 15:33:35 desktop hpcups[5677]: prnt/hpcups/Hbpl1.cpp 52: Hbpl1 constructor : m_szLanguage = HBPL1
Feb 12 15:33:35 desktop hpcups[5677]: common/utils.c 69: unable to open /var/lib/hp/hplip.state: No such file or directory
Feb 12 15:33:35 desktop hpcups[5677]: common/utils.c 119: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Feb 12 15:33:35 desktop hpcups[5677]: common/utils.c 157: Plugin version is not matching
Feb 12 15:33:35 desktop hpcups[5677]: prnt/hpcups/HPCupsFilter.cpp 486: m_Job initialization failed with error = 48
Feb 12 15:33:35 desktop hp[5678]: prnt/backend/hp.c 919: ERROR: null print job total=0
Feb 12 15:33:56 desktop hpcups[5690]: prnt/hpcups/Hbpl1.cpp 52: Hbpl1 constructor : m_szLanguage = HBPL1
Feb 12 15:33:56 desktop hpcups[5690]: common/utils.c 69: unable to open /var/lib/hp/hplip.state: No such file or directory
Feb 12 15:33:56 desktop hpcups[5690]: common/utils.c 119: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Feb 12 15:33:56 desktop hpcups[5690]: common/utils.c 157: Plugin version is not matching
Feb 12 15:33:56 desktop hpcups[5690]: prnt/hpcups/HPCupsFilter.cpp 486: m_Job initialization failed with error = 48
Feb 12 15:33:56 desktop hp[5691]: prnt/backend/hp.c 919: ERROR: null print job total=0
看起来那里有一些问题,但我不知道如何解决它们。我尝试过 Jetdirect、IPP 和 hp 协议。当提示输入时,我正在使用 Hplip / foomatic 的精确匹配驱动程序(尽管其中一种方法没有要求驱动程序)。全部产生相同的结果。我可以尝试什么?
答案1
common/utils.c 69:无法打开 /var/lib/hp/hplip.state
使用 root 权限创建 hplip.state,然后在客户端/用户计算机上安装您可能需要的 hp 插件(如果他们无法提供打印)。