打印机无法在 Ubuntu 20.04 上工作,“hpcups 不可用”

Ani*_*ari 4 printing 20.04

Hp Laserjet 1108、HP Laserjet 1007、HP Laserjet pro M1213nf MFP、Canon Pixma 5070,安装 Ubuntu 20.04 后打印机无法工作。他们都在 Ubuntu 18.04 中工作。它说:

File "/usr/lib/cups/filter/hpcups" not available: No such file or directory.
Run Code Online (Sandbox Code Playgroud)

然而终端说:

hplip is already the newest version (3.20.3+dfsg0-2)
Run Code Online (Sandbox Code Playgroud)

我也尝试过hplip-gui,并且在 2 台不同的笔记本电脑上重新安装了 Ubuntu 总共 4 次,但打印机仍然无法工作。

kor*_*ies 5

您可能缺少共享库/usr/lib/cups/filter/hpcups,根据 Debian 文件列表,软件包printer-driver-hpcupshttps://packages.ubuntu.com/focal/printer-driver-hpcups/)有它。因此,如果您是hplip从 HP 网站包安装的,请使用该设置将其卸载。如果通过 apt 或预安装在 Focal 中,请执行以下操作:

sudo apt purge hplip hplip-gui printer-driver-hpcups
Run Code Online (Sandbox Code Playgroud)

请务必记下删除的内容(读取输出),apt autoremove如有必要,请执行此操作。然后重新安装它们,这样系统就不太可能损坏。

sudo apt update 
sudo apt upgrade 
sudo apt install hplip hplip-gui printer-driver-hpcups <+ anything that's removed in the last steps>
Run Code Online (Sandbox Code Playgroud)

连接打印机后运行打印机设置向导,确保 CUPS 插槽已激活,CUPS 服务正在运行;如果需要,选择该ppd文件,您就可以完成向导。