我犯了一个错误。
我买了一台新的 HP OfficeJet Pro 6970,但并没有先验证它是否适用于 Ubuntu 18.04。当然,它不兼容。
INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing REQUIRED dependency: pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency: sane-devel (SANE - Scanning library development files)
INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
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.
所有推荐的存储库都处于活动状态,但这并不重要,因为上述缺少的依赖项在 18.04 中不再可用。
是的,我正在运行最新版本的 hplip-3.19.3
这就是我被困住的地方:
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ?
有没有什么可以拯救生命...省钱的建议?
答案1
答案2
根据hplip 官方页面您必须至少安装 HPLIP 3.16.8,因此来自 Ubuntu 18.04 LTS(版本 3.17.10)的软件包就足够了。
您的打印机不需要专有驱动程序/插件。
然后考虑关注卸载部分我的其他答案删除不必要的 HPLIP 二进制版本:
sh hplip-3.19.3.run --noexec cd hplip-3.19.3 sudo ./uninstall.py sudo rm -rf /usr/share/hplip/
之后我们安装官方的 Ubuntu 软件包(可选):
sudo apt-get install hplip-gui
并运行hp-setup
(具体步骤见我的其他答案)。