我正在尝试在 Ubuntu 20.04 版本中为 HP P1007 打印机安装 HPLIP。但在安装 HPLIP 时出现以下错误
DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes python3-pyqt5'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes gtk2-engines-pixbuf'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
**error: A required dependency 'python3-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 'python3-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.**
当我尝试安装所需的依赖项 python3-pyqt5 时,它已经存在于我的系统中,尝试安装缺少的依赖项时请查看以下消息。
sudo apt-get install python3-pyqt5
[sudo] password for mahan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pyqt5 is already the newest version (5.14.1+dfsg-3build1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
请帮我解决这个问题。
答案1
我再次重新安装了 Ubuntu 20.04 版本,并在 Ubuntu 中安装了 puthon3-qt5,然后我就可以安装 hp-plugin 了,这次我没有发现任何问题,打印机也工作正常。
如果在安装过程中遇到问题,请按照以下步骤操作
1)sudo apt-get install python3-pyqt5(无需在 ubuntu 20.04 中下载并安装 HP-Lip,因为此版本已经安装了 hplip 来验证运行 dpkg -l hplip)2)运行 hp-plugin,它将打开 HP 插件 GUI