HP Deskjet D1360/CUPS/HPLIP ISSUE

There is something wrong with my printer HP Deskjet D1360. I try to print a PDF file on Okular and the pop-up’s at the left top corner of the screen shows two messages: First, say that the printing job has started, and inmediately appears the next dialog saying that the printing job has already done, but the printer never attemps to print.
The problem also appear if I try to print on Libreoffice. On the other hand, the CUPS TEST PAGE can be printed.
Any ideas?

  1. What does the following command report?
lpstat -p

Is the printer ‘Idle’ or…?
You could also examine the cups error log. (Post the results here if you’re not sure how to interpret the output)
.

cat /var/log/cups/error_log
  1. Is this a locally connected USB printer, network-attached printer…?

3.This is a good reference page:
HP Linux Imaging and Printing
Read the troubleshooting and FAQ pages

  1. If you didn’t configure with the hp-setup utility, consider reinstalling. (Make sure you have the hplip package installed).
  1. lpstat report:

printer Deskjet-D1300-series is idle. enabled since Mon 03 Oct 2011 01:09:12 PM VET

CUPS error log:

Too long! Pasted on next reply

  1. Is a local usb connected printer.

  2. Reading the troubleshooting page I’ve found something… hp-check show many dependencies error but I’m not familiar with the output, so I’m gonna paste it:

Too long! Pasted on next reply

  1. I’m going to install the latest version of hplip. Something I forgot: I could print two weeks ago… The printing issue could not have more than two weeks.

HP Linux Imaging and Printing System (ver. 3.11.5)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 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).

Saving output in log file: hp-check.log

Initializing. Please wait…


SYSTEM INFO

Basic system information:
Linux ecarvilla.site 2.6.37.6-0.7-desktop #1 SMP PREEMPT 2011-07-21 02:17:24 +0200 i686 i686 i386 GNU/Linux

Distribution:
suse 11.4

Checking Python version…
OK, version 2.7.0 installed

Checking PyQt 4.x version…
OK, version 4.8.3 installed.

Checking for CUPS…
Status: scheduler is running
Version: 1.4.6
error_log is set to level: warn

Checking for dbus/python-dbus…
dbus daemon is running.
python-dbus version: 0.83.2


COMPILE AND RUNTIME DEPENDENCIES

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System…
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel cupsddk”

Checking for dependency: CUPS image - CUPS image development files…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel”

Checking for dependency: DBus - Message bus system…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses dbus-1-devel python-gobject2”

Checking for dependency: gcc - GNU Project C and C++ Compiler…
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer…
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses openssl”

Checking for dependency: libjpeg - JPEG library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libjpeg-devel”

Checking for dependency: libnetsnmp-devel - SNMP networking library development files…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses net-snmp-devel”

Checking for dependency: libpthread - POSIX threads library…
OK, found.

Checking for dependency: libtool - Library building support services…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libtool libgphoto2-devel”

Checking for dependency: libusb - USB library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libusb-1_0-devel libusb-1_0-0”

Checking for dependency: make - GNU make utility to maintain groups of programs…
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)…
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-imaging”

Checking for dependency: PolicyKit - Administrative policy framework…
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4…
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus…
OK, found.

Checking for dependency: Python devel - Python development files…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-devel python-xml”

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications…
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-notify”

Checking for dependency: Python XML libraries…
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality…
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language…
OK, found.

Checking for dependency: Reportlab - PDF library for Python…
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library…
OK, found.

Checking for dependency: SANE - Scanning library development files…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses sane-backends-devel”

Checking for dependency: scanimage - Shell scanning program…
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE…
OK, found.


HPLIP INSTALLATION

Currently installed HPLIP version…
HPLIP 3.11.5 currently installed in ‘/usr/share/hplip’.

Current contents of ‘/etc/hp/hplip.conf’ file:

hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.11.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/manufacturer-PPDs/hplip
ppdbase=/usr/share/cups/model/manufacturer-PPDs
doc=/usr/share/doc/packages/hplip
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/lib/cups/driver

Following values are determined at configure time and cannot be changed.

[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.11.5
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of ‘/var/lib/hp/hplip.state’ file:

hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of ‘~/.hplip/hplip.conf’ file:
error: Could not access file: No such file or directory


DISCOVERED USB DEVICES

No devices found.


INSTALLED CUPS PRINTER QUEUES

Deskjet-D1300-series

Type: Printer
Device URI: hp:/usb/Deskjet_D1300_series?serial=TH7161236S04ND
PPD: /etc/cups/ppd/Deskjet-D1300-series.ppd
PPD Description: HP Deskjet d1300 Series, hpcups 3.11.1.19
Printer Unplugged or turned off-D1300-series disabled since Mon 03 Oct 2011 01:26:24 PM VET -
error: Unable to communicate with device (code=12): hp:/usb/Deskjet_D1300_series?serial=TH7161236S04ND
error: Device not found
error: Communication status: Failed


SANE CONFIGURATION

‘hpaio’ in ‘/etc/sane.d/dll.conf’…
OK, found. SANE backend ‘hpaio’ is properly set up.

Checking output of ‘scanimage -L’…

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


PYTHON EXTENSIONS

Checking ‘cupsext’ CUPS extension…
OK, found.

Checking ‘pcardext’ Photocard extension…
OK, found.

Checking ‘hpmudext’ I/O extension…
OK, found.

Checking ‘scanext’ SANE scanning extension…
OK, found.


USER GROUPS

root


SUMMARY

error: 14 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel cupsddk”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses dbus-1-devel python-gobject2”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses openssl”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libjpeg-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses net-snmp-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libtool libgphoto2-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libusb-1_0-devel libusb-1_0-0”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-imaging”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-devel python-xml”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-notify”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses sane-backends-devel”

When you execute hp-check, did you have your printer attached?

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------


Deskjet-D1300-series
--------------------
Type: Printer
Device URI: hp:/usb/Deskjet_D1300_series?serial=TH7161236S04ND
PPD: /etc/cups/ppd/Deskjet-D1300-series.ppd
PPD Description: HP Deskjet d1300 Series, hpcups 3.11.1.19
Printer Unplugged or turned off-D1300-series disabled since Mon 03 Oct 2011 01:26:24 PM VET -
error: Unable to communicate with device (code=12): hp:/usb/Deskjet_D1300_series?serial=TH7161236S04ND
error: Device not found
error: Communication status: Failed

BTW, for lengthy output, it is often more sensible to upload to SUSE Paste (and set ‘Delete After’ to ‘1 year’ or so), then post the link to it only.

I note that this was reported too (missing plugin and license)


[plugin]
installed=0
eula=0

Looks like you need to run hp-plugin (with root privileges). However, also read below…

su -c hp-plugin

What is the HPLIP Binary Plug-In and How Do I Install It? | HPLIP Knowledge Base

As of February 2009 (concurrent with the 3.9.2 release of HPLIP), there were aproximately 50 LaserJet printers or MFP’s that either require the plug-in for the device to operate or use the plug-in for enhanced performance (i.e. improved print quality, faster print speed, etc.). However, additional devices (including inkjet products) are anticipated to use the plug-in in the future. For the current list of plug-in enabled printers see this link, which also includes the device features that are enabled or enhanced by the plug-in.

Although, I note that you model wasn’t listed, so I’m not sure if this applies.

If you get stuck, I’d suggest deleting your current config, and start over with new version HPLIP installed and run ‘hp-setup’ again.

Sorry, my mistake.

This is the new log with my printer connected to the usb port.

SUSE Paste

And CUPS error log:

SUSE Paste

Thank’s for the SUSEPaste tip for the uploading of large codes. Great tool.

I’ve solved the problem running hp-setup with the default version of HPLIP (3.11.5) and adding my printer as a new one. Actually, I have two instances for the same printer (Deskjet-1300-series, Deskjet_1300). Can you tell me how to delete and purge the old configuration (Deskjet-1300-series)?

I’ve solved the problem running hp-setup with the default version of HPLIP (3.11.5) and adding my printer as a new one.

Great. I thought that might work for you.

Can you tell me how to delete and purge the old configuration (Deskjet-1300-series)?

Well, if you examine your dual config via the CUPS interface using your favourite broswer:

http://localhost:631/printers

Click on the printer definition you wish to remove>>Administration>>Delete Printer

This can also be done manually by editing /etc/cups/printers.conf (as root) if you’re confident to do so. For KDE,

kdesu kwrite /etc/cups/printers.conf

If using Gnome

gnomesu gedit /etc/cups/printers.conf

Each printer definition is enclosed between tags like this

<Printer HP....>
.
.
.
</Printer>

You’ll have to figure out which relates to the current queue (vs stale queue).

Done!!! Thank’s so much for your help.

Good result. You did the hard work…I just sat here, typed…and drank coffee :slight_smile: