hplip for Debian 7.8 and dependency problems

Asked by Anil Duggirala

Upon installing hplip, it installs versions of various qt4 related packages. For some reason, the packages installed are not being properly handled by my package manager. For example, if I try to install the virtualbox package from debian backports, it will try to upgrade all of these qt4 related packages to their backports version even though the version installed satisfies (as should be) the dependency requirements. I know latest version of hplip only supports up to Debian 7.6, is this the reason these packages are not being recognized somehow???
thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
goutam kodu
Solved:
Last query:
Last reply:
Revision history for this message
goutam (goutamkk) said :
#1

Hi Anil,

Can you please provide us hp-check command output ?
hplip-3.14.10 version has support till debian 7.6. But still you can proceed with install on debian 7.8. It should be able to recognize the dependent package.

Can you give us more detail what is the exact error you are getting to see during installation ?

Rgds,
Goutam

Revision history for this message
Anil Duggirala (anilduggirala) said :
#2

I did not see any error during installation of hplip script (and my printer worked perfectly). But some of the packages it installed (eg libqt4-xxx packages) are not being correctly handled by my package manager. That is, when I tried to install software that depends on these packages, it tries to upgrade these packages even though its not necessary (versions installed by hplip are high enough),, Anyways, this breaks my whole system, and upon reading the man page for apt-get:
 --force-yes
           Force yes; this is a dangerous option that will cause apt to
           continue without prompting if it is doing something potentially
           harmful. It should not be used except in very special situations.
           Using force-yes can potentially destroy your system!
I believe the problem is being caused by the hplip installation script upon installing these packages.
Anyways,, I have reinstalled my whole system, hplip 3.12.6 comes installed already, the only reason I was trying to install the newer version is because I had trouble installing the required driver plug-in (installation failed). Should I try to add the printer again using the hplip 3.12.6 I already have? Is there any way I could download manually the driver plug-in required for my printer? (HP Laserjet P1102w)
Running hp-check in my current system outputs,
Missing Required Dependencies
-----------------------------
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libcups2' package is missing/incompatible
error: 'libssl-dev' package is missing/incompatible
error: 'python-qt4-dbus' package is missing/incompatible
error: 'libjpeg62-dev' package is missing/incompatible
error: 'libc6' package is missing/incompatible
error: 'python-dev' package is missing/incompatible
error: 'python-qt4' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libcupsimage2' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'g++' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'make' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
error: 'cups-ddk' package is missing/incompatible

How can hplip be already installed, and have missing dependencies???
Amongst other things,

thanks for your quick reply,

Ani

Revision history for this message
Anil Duggirala (anilduggirala) said :
#3

ok, Ive tried again installing my printer with the hplip 3.12.6 in my system but, right after saying the plugin installation was successful it says:
error: The printer you are trying to setup requires a binary driver plug-
in and it failed to install. Please check your internet connection and tr
y again. Visit http://hplipopensource.com for more infomation

isnt there any way I could download manually this plugin file?

thanks,

I really dont feel comfortable trying to install again using the hplip script because it is causing really bad things to my system,

Revision history for this message
Best goutam kodu (goutam-hplip) said :
#4

here is the link to download plugin files for hplip 3.12.6 version.
http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.6-plugin.run
http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.6-plugin.run.asc

Run command su -c'hp-plugin' in terminal and choose the second option , browser to the location where hplip-3.12.6-plugin.run is downloaded. Select the file and install.

rgds
goutam

Revision history for this message
Anil Duggirala (anilduggirala) said :
#5

thanks a lot.
I still have some questions:
1. Could I do the insallation running hp-setup and selecting the file when it asks for it?
2. Should I run hp-setup as root? or using sudo?
3. If the plugin is installed using hp-plugin, when the printer is added will it use the plugin?
4. How can I check to be completely sure the plugin is correctly installed and in use?

thanks,

Revision history for this message
goutam kodu (goutam-hplip) said :
#6

You can do the installation running hp-setup and selecting the file when it asks for it.

Revision history for this message
Anil Duggirala (anilduggirala) said :
#7

I ran hp-setup -i as root and selected the path to the directory when ask for. My printer was installed and seems to be working flawlessly,
Thanks a lot

I did get the following error upon printing the test page
warning: Qt/PyQt 4 initialization failed.
error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.
I didnt install the hplip-gui package, just trying to avoid any further problems, is it advisable for me to install the hplip-gui package?

thanks,

Revision history for this message
Anil Duggirala (anilduggirala) said :
#8

Thanks goutam kodu, that solved my question.

Revision history for this message
goutam (goutamkk) said :
#9

Yes you can install hplip-gui