Hp 和 Ubuntu 20.04

Hp 和 Ubuntu 20.04

我有一台 HP 2540 打印机,它在 18.04 中可以正常工作,但在 20.04 中却不能。

我尝试从 Hp 安装 HPLIP(版本 3.20.9),但收到以下警告和错误:

warning: Missing REQUIRED dependency: pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))
warning: Missing OPTIONAL dependency for option 'gui_qt5': pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)
warning: Missing OPTIONAL dependency for option 'gui_qt5': python-notify (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
warning: This installer cannot install 'pil' for your distro/OS and/or version.

error: Package install command failed with error code 100

然后我卸载了 HPLIP,正如这个答案所建议的那样如何在我的 Ubuntu 上安装最新的 HPLIP 以支持我的 HP 打印机和/或扫描仪?并安装 hp-plugin 但没有成功。打印机已添加,但显示为繁忙或“设备通信错误”

扫描也不起作用。

我现在不知道该如何处理。

答案1

在 ubuntuusers.de 上找到了这个解决方案:

    apt show ippusbxd
    Package: ippusbxd
    Version: 1.34-2ubuntu1
    Priority: extra
    Section: comm
    Origin: Ubuntu
    Maintainer: Ubuntu Developers <[email protected]>
    Original-Maintainer: Debian Printing Team <debian-                                                                        [email protected]>
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Installed-Size: 110 kB
    Provides: cups-filters-ippusbxd
    Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6  (>= 2.15), libcups2 (>= 1.7.0), libusb-1.0-0 (>= 2:1.0.16), libxml2 (>= 2.7.4)
    Recommends: system-config-printer-udev
    Conflicts: cups-filters-ippusbxd
    Replaces: cups-filters-ippusbxd
    Enhances: cups
    Homepage: https://github.com/OpenPrinting/ippusbxd
    Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, kubuntu- full, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop, ubuntukylin-desktop,  ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
    Download-Size: 36,0 kB
    APT-Sources: http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
    Description: Daemon for IPP USB printer support
    ippusbxd is a userland driver for USB devices supporting the IPP USB
    specification. It enables these USB printers to be seen as regular
    network IPP printers.

似乎

    sudo apt purge ippusbxd

解决了这个问题。

相关内容