从 19.10 升级到 20.04 后,我自动删除了许多已弃用的软件包。在 hplip 升级期间,我确认使用了维护者版本的配置文件。但是在 Ubuntu 重启后,hp 1020 打印机停止打印。每次我刷新窗口时,Hplip 工具箱都会挂起。所以我已经完全清除并卸载了 hplip。
使用本指南进行安装会安装之前安装的 hplip 3.20.3 版本。
所以,我从网上下载3.20.5版本在这里的Ubuntu,与chmoded它x
的权限和运行它./hplip-3.20.5.run
。
它询问我是否要安装缺少的依赖项:
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 OPTIONAL
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
python-notify gui_qt5 OPTIONAL
Run Code Online (Sandbox Code Playgroud)
我说y
,但是,对于python-pyqt5
我有的包裹:
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Run Code Online (Sandbox Code Playgroud)
对于python-dbus.mainloop.pyqt5
包裹:
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Run Code Online (Sandbox Code Playgroud)
对于python-notify
包裹:
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Run Code Online (Sandbox Code Playgroud)
对于python-reportlab
:
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Run Code Online (Sandbox Code Playgroud)
我跳过了这些软件包的安装,因为无法安装它们。最后,我遇到了下一个错误:
warning: Some HPLIP functionality might not function due to missing package(s).
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.
RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK
RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.
Run Code Online (Sandbox Code Playgroud)
我也hplip-3.20.5-plugin.run
从这里下载
$ bash hplip-3.20.5-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.5 Plugin Self Extracting Archive..............................................................
Error setting home directory: /etc/hp/hplip.conf not found. Is HPLIP installed?
Run Code Online (Sandbox Code Playgroud)
Universe/Multiverse 存储库已启用,但是:
$ apt-cache search python-pyqt5
python-pyqt5.qwt-doc - Python Qwt6 technical widget library, documentation and examples
$ apt-cache search python-reportlab
python-reportlab-doc - Documentation for the ReportLab Python library (PDF format)
$ apt-cache search python-dbus.mainloop.pyqt5
$ apt-cache search python-notify
python3-notify2 - desktop notifications API for Python 3
Run Code Online (Sandbox Code Playgroud)
包python3-pyqt5
, python3-reportlab
, python3-notify2
,python3-dbus.mainloop.pyqt5
已安装并且是already the newest version
s。
例如,我还可以看到,python-pyqt5
包在 19.10 存储库中可用,但是该包需要的qtbase-abi-5-12-4
包在 eoan 的存储库中不存在。18.04 的python-pyqt5
包需要不同的 qtbase-abi 包,在仿生的存储库中不存在。
这是否意味着 phlip-3.20.5 与 20.04 不兼容,或者是否存在包含这四个包及其依赖项的其他存储库?
更新:
已安装hplip
, hplip-data
,hplip-gui
包。
从启动器启动 hplip-gui
收到登录信息journalctl -f
:
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: error: Unable to locate models.dat file
Jun 07 23:14:13 ubuntu /hp-toolbox[17823]: [17823]: error: Unable to locate models.dat file
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: HP Linux Imaging and Printing System (ver. 0.0.0)
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: HP Device Manager ver. 15.0
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: Copyright (c) 2001-18 HP Development Company, LP
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: This software comes with ABSOLUTELY NO WARRANTY.
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: This is free software, and you are welcome to distribute it
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: under certain conditions. See COPYING file for more details.
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: Traceback (most recent call last):
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: File "/usr/bin/hp-toolbox", line 269, in <module>
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: QApplication, ui_package = utils.import_dialog(ui_toolkit)
Jun 07 23:14:13 ubuntu hplip.desktop[17823]: TypeError: cannot unpack non-iterable NoneType object
Run Code Online (Sandbox Code Playgroud)
hplip-gui
尚未启动:桌面上什么也没有出现。
较新的hplip-3.20.6也不支持 Ubuntu 20.04。
小智 8
事实上,在 Ubuntu 20.04 上使用 hplip-3.20.6 存在一些问题。安装抱怨 pyqt5。我的解决方法是使用自定义选项(而不是自动)安装 hplib-3.20.6。您可以在没有 qt 支持的情况下安装 hplib(没有:图形用户界面 (Qt5))。在终端中请运行:
./hplip-3.20.6.run
Run Code Online (Sandbox Code Playgroud)
现在您可以选择自定义安装并禁用 qt5:
Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? n
Run Code Online (Sandbox Code Playgroud)
你得到:
INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.
Please choose the installation mode (a=automatic*, c=custom, q=quit) : c
INTRODUCTION
------------
This installer will install HPLIP version 3.20.6 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).
DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 20.04.
Is "Ubuntu 20.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y
DRIVER OPTIONS
--------------
Would you like to install Custom Discrete Drivers or Class Drivers ( 'd'= Discrete Drivers*,'c'= Class Drivers,'q'= Quit)? : d
Initializing. Please wait...
SELECT HPLIP OPTIONS
--------------------
You can select which HPLIP options to enable. Some options require extra dependencies.
Do you wish to enable 'Network/JetDirect I/O' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? n
Do you wish to enable 'PC Send Fax support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Scanning support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'HPLIP documentation (HTML)' (y=yes*, n=no, q=quit) ? y
Run Code Online (Sandbox Code Playgroud)
我希望这个评论有用,问候。
归档时间: |
|
查看次数: |
9484 次 |
最近记录: |