简体   繁体   English

创建包的符号链接

[英]Create symlink to the package

I have installed Debian 9 and old LaserJet printer.我已经安装了 Debian 9 和旧的 LaserJet 打印机。 When I run hplip installer it says:当我运行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.

There are no such pakages in Debian 9 pyqt4-dbus and pyqt4 . Debian 9 pyqt4-dbuspyqt4中没有这样的pyqt4

They are called python-qt4-dbus and python-qt4 .它们被称为python-qt4-dbuspython-qt4

The easiest way to solve this is to create symlink.解决这个问题的最简单方法是创建符号链接。

There is a program equivs that can create fake/meta packages usually with just a dependency/conflict/etc.有一个程序equivs可以创建假/元包,通常只有一个依赖/冲突/等。 information.信息。 Its description says它的描述说

Another use is to circumvent dependency checking: by letting dpkg think a particular package name and version is installed when it isn't, you can work around bugs in other packages' dependencies.另一个用途是规避依赖项检查:通过让 dpkg 认为安装了特定的包名称和版本,而实际上却没有安装,您可以解决其他包依赖项中的错误。 (Please do still file such bugs, though.) (不过,请仍然提交此类错误。)

It seems quite inelegant solution to me, but if everything other fails, maybe fake package can help.这对我来说似乎很不雅的解决方案,但如果其他一切都失败了,也许假包可以提供帮助。

First, you need to install pip, which is a tool for manage python packages.首先需要安装pip,这是一个管理python包的工具。

apt-get update && apt-get install pip

Then you can easily run然后你可以轻松运行

pip install pyqt4 pyqt4-dbus

This should be work.这应该是工作。

You can also download the latest tar.gz file hplip-3.20.6 ( https://sourceforge.net/projects/hplip/files/hplip/ ).您还可以下载最新的 tar.gz 文件 hplip-3.20.6 ( https://sourceforge.net/projects/hplip/files/hplip/ )。

And then run the installer without qt4 support: python3 ./install.py --no-qt4然后在不支持 qt4 的情况下运行安装程序: python3 ./install.py --no-qt4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM