Hplip under Debian 8 (Jessie)

Asked by Alejandro Pernin

Hi, I am running a Debian 8 (Jessie) box and I'm having problem making hplip to work. Previously I had a Debian 7 (wheezy) and had no problems at all, but now cant manage to make it work.

The printer I have is a HP Laserjet P1006.

root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie

root@debian:~# hp-setup
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 45, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/usr/share/hplip/base/device.py", line 42, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 59, in <module>
    import hpmudext
ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: hpmud_make_par_uri

root@debian:~# hp-toolbox
Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 39, in <module>
    from base import status, tui, module
  File "/usr/share/hplip/base/status.py", line 59, in <module>
    import hpmudext
ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: hpmud_make_par_uri

neo@debian:/etc/hp$ hp-check
Saving output in log file: /etc/hp/hp-check.log
Failed to remove /etc/hp/hp-check.log file

HP Linux Imaging and Printing System (ver. 3.14.4)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-13 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

warning: debian-8.0 version is not supported. Using debian-7.5 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) GNU/Linux
 Host: debian
 Proc: 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) GNU/Linux
 Distribution: debian 8.0
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.14.4
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian distro 8.0 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.14.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.14.4
html=/usr/share/doc/hplip-3.14.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.14.4
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 02/20/2015 19:37:32
version = 3.14.4

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 policykit Admin-Policy-framework OPTIONAL - 0.105 OK -
 gs Ghostscript REQUIRED 7.05 9.06 OK -
 network Network-wget OPTIONAL - 1.16 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.24 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
 dbus DBus REQUIRED - 1.8.12 OK -
 cups CUPS REQUIRED 1.1 1.7.5 OK 'CUPS Scheduler is running'
 xsane SANE-GUI OPTIONAL 0.9 0.998 OK -

-------------------------
| General Dependencies |
-------------------------

 error: reportlab Python-PDF-Lib OPTIONAL 2.0 3.1.8 MISSING 'reportlab needs to be installed'
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.11.2 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - 2.19 OK -
 python-dbus Python-DBUS REQUIRED 0.80.0 1.2.0 OK -
 python-devel Python-SDK REQUIRED 2.2 2.7.8 OK -
 pyqt4 Python-Qt4 REQUIRED 4.0 4.11.2 OK -
 cups-devel CUPS-SDK REQUIRED - 1.7.5 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.24 OK -
 libusb USB-Lib REQUIRED - 1.0 OK -
 sane Scan-Lib REQUIRED - 1.0.24 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.7.5 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.7.2 OK -
 python-xml Python-XML-Lib REQUIRED - 2.1.0 OK -
 python-notify Desktop-notifications OPTIONAL - - OK -

------------------------------
| Compile Time Dependencies |
------------------------------

 gcc gcc-Compiler REQUIRED - 4.9.1 OK -
 error: libtool Build-tools REQUIRED - - MISSING 'libtool needs to be installed'
 make GNU-Build-tools REQUIRED 3.0 4.0 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.14.4 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.14.4 OK -
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of hpmudext.
 error: hpmudext IO-Extension REQUIRED - 3.14.4 MISSING 'Not Found or Failed to load, Please reinstall HPLIP'

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.14.4 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.14.4 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `v4l:/dev/video0' is a Noname Laptop_Integrated_Webcam_HD virtual device

--------------
| PERMISSION |
--------------

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'libtool' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'python-reportlab' package is missing/incompatible

Total Errors: 3
Total Warnings: 0

Run 'hp-doctor' command to prompt and fix the issues.

Done.

neo@debian:/etc/hp$ hp-doctor
Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 37, in <module>
    from base import utils, tui, module,queues, os_utils, services, smart_install
  File "/usr/share/hplip/base/module.py", line 30, in <module>
    import tui, utils, device
  File "/usr/share/hplip/base/device.py", line 42, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 59, in <module>
    import hpmudext
ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: hpmud_make_par_uri

neo@debian:~$ dpkg -l | grep reportlab
ii python-reportlab 3.1.8-3 all ReportLab library to create PDF documents using Python
ii python-reportlab-accel:amd64 3.1.8-3 amd64 C coded extension accelerator for the ReportLab Toolkit

neo@debian:~$ dpkg -l | grep libtool
ii libltdl-dev:amd64 2.4.2-1.11 amd64 System independent dlopen wrapper for GNU libtool
ii libltdl7:amd64 2.4.2-1.11 amd64 System independent dlopen wrapper for GNU libtool
ii libltdl7:i386 2.4.2-1.11 i386 System independent dlopen wrapper for GNU libtool
ii libtool 2.4.2-1.11 all Generic library support script

neo@debian:~$ dpkg -l | grep mud
ii libhpmud-dev 3.14.6-1+b2 amd64 HP Multi-Point Transport Driver (hpmud) development libraries
ii libhpmud0 3.14.6-1+b2 amd64 HP Multi-Point Transport Driver (hpmud) run-time libraries

neo@debian:~$ dpkg -l | grep hplip
ii hplip 3.14.6-1+b2 amd64 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.14.6-1 all HP Linux Printing and Imaging - data files
ii hplip-gui 3.14.6-1 all HP Linux Printing and Imaging - GUI utilities (Qt-based)

Something funny I can see is a difference between the hplip installed version (3.14.6) and the hplip.conf claiming 3.14.4

Any help will be great. Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Sanjay Kumar
Solved:
Last query:
Last reply:
Revision history for this message
Best Sanjay Kumar (sanjay-kumar14) said :
#1

Hi,

Debian 8 is not yet supported in HPLIP automatic installer, however you can install HPLIP using manual instructions. Below are the steps.

=> Download and install the latest HPLIP release from
http://hplipopensource.com/hplip-web/install/manual/index.html (Use debian 7.x steps)

=> Reconfigure print queue using below commands.

       => hp-setup -r (remove all print queues)

      => su -c "hp-plugin"

       => hp-setup

=>Try printing now.

Revision history for this message
Alejandro Pernin (ale-pernin) said :
#2

Thanks Sanjay Kumar, that solved my question.

Revision history for this message
Alejandro Pernin (ale-pernin) said :
#3

That did the trick, Thanks!

Revision history for this message
Charles Wright (wrighrc) said :
#4

Hello, I also have a p1006 and I'm getting

Nov 08 07:13:07 x1 hp-config_usb_printer[428]: hp-config_usb_printer[428]: error: hp-systray must be running.
                                                Run 'hp-systray &' in a terminal.
Nov 08 07:13:07 x1 hp-config_usb_printer[428]: hp-config_usb_printer[428]: error: HP Device plugin's are not installed. Please install plugin's using hp-plugin command.

Nov 08 07:13:10 x1 hp-firmware[683]: [683]: error: Firmware file '/usr/share/hplip/data/firmware/hp_laserjet_p1006.fw.gz' not found.
Nov 08 07:13:10 x1 hp-firmware[683]: hp-firmware[683]: error: Firmware download failed.

Debian 8.2 hplip version is 3.14.6-1+b2

Per:
http://news.softpedia.com/news/hp-linux-imaging-and-printing-3-15-7-adds-support-for-debian-8-1-jessie-487143.shtml
It seems that 3-15-7 added support for debian 8.1

Per HP:
http://hplipopensource.com/hplip-web/downloads.html

"The Automatic Installer is known to work on the following Linux Distributions
Debian (6.0, 6.0.1, 6.0.10, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2)"

I tried the latest HPLIP version 3.15.9 and it gives

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y libdbus-1-dev"'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'su -c "apt-get install --force-yes -y libdbus-1-dev"'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'su -c "apt-get install --force-yes -y libdbus-1-dev"'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'su -c "apt-get install --force-yes -y libdbus-1-dev"'
Please wait, this may take several minutes...
error: Package install command failed with error code 100

From this exercise I wonder why debian 8 ships with 3.14.6 if hplip support for debian 8 occurred in 3.15.7
(perhaps they tested it and found what I found and wanted to ship a working version?)

I read about trying the manual install but it seems I have both python2 and python3 so I'm not sure what set of instructions to try.

Is HP position currently that the automatic installer should work on 8.2? That's what the website claims.

Any help to clear up my confusion would be appreciated. I'm reluctant to want to force install things.
Thanks.