创建包

时间:2017-09-16 07:24:28

标签: linux debian

我安装了Debian 9和旧的LaserJet打印机。当我运行hplip安装程序时,它说:

error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.

Debian 9 pyqt4-dbuspyqt4中没有此类内容。

他们被称为python-qt4-dbuspython-qt4

解决此问题的最简单方法是创建符号链接。

3 个答案:

答案 0 :(得分:1)

有一个程序equivs可以创建假/元包,通常只有依赖/冲突/等。信息。它的描述说

  

另一个用途是绕过依赖项检查:通过让dpkg认为特定的软件包名称和版本安装时,可以解决其他软件包依赖项中的错误。 (但是,仍然要提交此类错误。)

这对我来说似乎是一个非常不优雅的解决方案,但如果其他一切都失败了,也许假包装可以提供帮助。

答案 1 :(得分:1)

首先,您需要安装pip,这是一个管理python包的工具。

apt-get update && apt-get install pip

然后你可以轻松运行

pip install pyqt4 pyqt4-dbus

这应该可行。

答案 2 :(得分:1)

您还可以下载最新的tar.gz文件hplip-3.20.6(https://sourceforge.net/projects/hplip/files/hplip/)。

然后运行不支持qt4的安装程序: python3 ./install.py --no-qt4