Well, I don't have words to express my frustration; I've been using Ubuntu 14.04 with my HP LaserJet P3015 for some years now, and I didn't have a problem in the first year or so (on multiple machines). Then, as I also switched machines (on which I again installed Ubuntu 14.04), first I got into Printer first has status pending, then prints a blank page ; and now I cannot even print a test page on this machine (with a relatively fresh Ubuntu 14.04 install).
First of all, my system info:
$ echo $(cat /etc/issue) $(lsb_release -idrc)
Ubuntu 14.04.5 LTS \n \l Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty
$ uname -a
Linux MyPC 4.4.0-109-generic #132~14.04.1-Ubuntu SMP Tue Jan 9 21:46:42 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ apt-show-versions -r hp | grep -v 'flash\|pathplan'
hplip:amd64/trusty-security 3.14.3-0ubuntu3.4 uptodate
hplip-data:all/trusty-security 3.14.3-0ubuntu3.4 uptodate
hplip-dbg:amd64/trusty-security 3.14.3-0ubuntu3.4 uptodate
hplip-gui:all/trusty-security 3.14.3-0ubuntu3.4 uptodate
libhpmud0:amd64/trusty-security 3.14.3-0ubuntu3.4 uptodate
libsane-hpaio:amd64/trusty-security 3.14.3-0ubuntu3.4 uptodate
printer-driver-hpcups:amd64/trusty-security 3.14.3-0ubuntu3.4 uptodate
printer-driver-postscript-hp:all/trusty-security 3.14.3-0ubuntu3.4 uptodate
I start from Printer OFF, connected via USB to laptop, laptop OFF. I turn the laptop ON, wait for Ubuntu 14.04 to boot; "HPLIP Status Service" in the system tray is automatically shown.
I set up a terminal with tail -f /var/log/syslog
; and then turn the printer ON - the syslog messages are:
$ tail -f /var/log/syslog
...
Jan 18 15:28:14 MyPC kernel: [ 542.278213] usb 1-1: new high-speed USB device number 11 using xhci_hcd
Jan 18 15:28:15 MyPC kernel: [ 542.491165] usb 1-1: New USB device found, idVendor=03f0, idProduct=8d17
Jan 18 15:28:15 MyPC kernel: [ 542.491175] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 18 15:28:15 MyPC kernel: [ 542.491180] usb 1-1: Product: HP LaserJet P3010 Series
Jan 18 15:28:15 MyPC kernel: [ 542.491185] usb 1-1: Manufacturer: Hewlett-Packard
Jan 18 15:28:15 MyPC kernel: [ 542.491189] usb 1-1: SerialNumber: HPSER1ALNR
Jan 18 15:28:15 MyPC kernel: [ 542.491497] usb 1-1: ep 0x5 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:15 MyPC kernel: [ 542.491506] usb 1-1: ep 0x81 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:15 MyPC kernel: [ 542.491858] usb 1-1: ep 0x5 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:15 MyPC kernel: [ 542.491866] usb 1-1: ep 0x81 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:15 MyPC kernel: [ 542.496254] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 11 if 0 alt 1 proto 2 vid 0x03F0 pid 0x8D17
Jan 18 15:28:16 MyPC kernel: [ 543.526808] usblp0: removed
Jan 18 15:28:16 MyPC kernel: [ 543.526816] usb 1-1: ep 0x5 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.526819] usb 1-1: ep 0x81 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.527180] usb 1-1: ep 0x5 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.527184] usb 1-1: ep 0x81 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.527876] usb 1-1: ep 0x5 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.527879] usb 1-1: ep 0x81 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.528180] usb 1-1: ep 0x5 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.528183] usb 1-1: ep 0x81 - rounding interval to 2 microframes, ep desc says 3 microframes
Jan 18 15:28:16 MyPC kernel: [ 543.528655] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 11 if 0 alt 1 proto 2 vid 0x03F0 pid 0x8D17
Clicking on "HP Device Manager..." at this point shows (click for full size image):
Try print test page from here - first get a blank window of "HP Device Manager":
... then after a while, errors:
"HP Device Manager - Print Test Page":
Unable to communicate with printer HP-LaserJet-P3010-Series.
Please check the printer and try again."hplip":
HPLIP Device Status
HP_LaserJet_P3010_Series Printer (HPSER1ALNR)
Device communication error (5012)
Close "HP Device Manager - Print Test Page" (its "Print Test Page" button is disabled/greyed out)
Now "HP Device Manager" shows a small red X by the printer icon; in "HP Device Manager", click "(Cups) View Printer and Device Information"; after a while with greyed window, get:
"HP Device Manager - Device Information":
Unable to open device hp:/usb/HP_LaserJet_P3010_Series?serial=HPSER1ALNR.
"HP Device Manager", changing to Status tab, says "Device communication error":
"HP Device Manager", changing to Printer Control tab, says printer is "Started/Idle":
Going to http://localhost:631/ - Printers tab - click on the printer; its status is: "HP-LaserJet-P3010-Series (Idle, Accepting Jobs, Not Shared, Server Default, Color-Managed)":
Open system-config-printer
; right-click on the printer, first choose "View Print Queue"; then choose "Properties": - Printer State is "Idle":
Click "Print Test Page" in this dialog - get as feedback: "Submitted", "Started a print job"; Printer State: "Processing":
... however note the message "Printer 'HP...' may not be connected."
And after a short time, get "Print job has completed message" - however:
We end up with "Printer Properties"/"Printer State": "Idle - Filter failed"; and "Print Status": Held; (silarly, the Cups interface shows under Jobs of this printer, under State field: 'held since Thu 18 Jan 2018 04:09:44 PM CET "Filter failed"'.
At this point; we can right-click the job in Document Print Status, and Cancel ("Do you really want to cancel this job?": "Cancel job")
Then, check groups of user, and lsusb
:
$ groups
username sys adm lp cdrom sudo audio dip video plugdev fuse lpadmin sambashare
$ lsusb | grep Hew
Bus 001 Device 011: ID 03f0:8d17 Hewlett-Packard
Try hp-check
:
$ hp-check
Saving output in log file: /home/username/hp-check.log
HP Linux Imaging and Printing System (ver. 3.14.3)
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: ubuntu-14.04 version is not supported. Using ubuntu-13.10 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 4.4.0-109-generic #132~14.04.1-Ubuntu SMP Tue Jan 9 21:46:42 UTC 2018 GNU/Linux
Host: MyPC
Proc: 4.4.0-109-generic #132~14.04.1-Ubuntu SMP Tue Jan 9 21:46:42 UTC 2018 GNU/Linux
Distribution: ubuntu 14.04
Bitness: 64 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.14.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 14.04 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.14.3
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-doc/HTML
html=/usr/share/doc/hplip-3.14.3
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
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=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.14.3
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.14.3
Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 01/18/2018 16:14:43
version = 3.14.3
[last_used]
device_uri = "hp:/usb/HP_LaserJet_P3010_Series?serial=HPSER1ALNR"
printer_name = HP-LaserJet-P3010-Series
working_dir = .
[settings]
systray_visible = 0
systray_messages = 0
[commands]
scan = /usr/bin/simple-scan %SANE_URI%
[refresh]
rate = 30
enable = false
type = 1
[polling]
enable = false
interval = 5
device_list =
[fax]
voice_phone =
email_address =
[upgrade]
notify_upgrade = false
last_upgraded_time = 1516286249.94309
pending_upgrade_time = 0
<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.10 OK -
network Network-wget OPTIONAL - 1.15 OK -
scanimage Shell-Scanning OPTIONAL 1.0 1.0.23 OK -
avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
dbus DBus REQUIRED - 1.6.18 OK -
error: cups CUPS REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
error: xsane SANE-GUI OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
-------------------------
| General Dependencies |
-------------------------
reportlab Python-PDF-Lib OPTIONAL 2.0 3.0 OK -
error: libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 MISSING 'libcrypto needs to be installed'
pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.10.4 OK -
error: libjpeg JPEG-Lib REQUIRED - - MISSING 'libjpeg needs to be installed'
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.6 OK -
pyqt4 Python-Qt4 REQUIRED 4.0 4.10.4 OK -
error: cups-devel CUPS-SDK REQUIRED - - MISSING 'cups-devel needs to be installed'
error: sane-devel SANE-SDK REQUIRED - - MISSING 'sane-devel needs to be installed'
error: libusb USB-Lib REQUIRED - 1.0 MISSING 'libusb needs to be installed'
sane Scan-Lib REQUIRED - - OK -
error: cups-image CUPS-Image-Lib REQUIRED - - MISSING 'cups-image needs to be installed'
error: libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
python-xml Python-XML-Lib REQUIRED - 2.1.0 OK -
python-notify Desktop-notifications OPTIONAL - - OK -
------------------------------
| Compile Time Dependencies |
------------------------------
gcc gcc-Compiler REQUIRED - 4.8.4 OK -
error: libtool Build-tools REQUIRED - - MISSING 'libtool needs to be installed'
make GNU-Build-tools REQUIRED 3.0 3.81 OK -
----------------------
| Python Extentions |
----------------------
cupsext CUPS-Extension REQUIRED - 3.14.3 OK -
pcardext PhotoCard-Extension REQUIRED - 3.14.3 OK -
hpmudext IO-Extension REQUIRED - 3.14.3 OK -
-----------------------
| Scan Configuration |
-----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.14.3 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.14.3 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
No Scanner found.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-LaserJet-P3010-Series
------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P3010_Series?serial=HPSER1ALNR
PPD: /etc/cups/ppd/HP-LaserJet-P3010-Series.ppd
PPD Description: HP LaserJet P3010 Series Postscript (recommended)
Printer Filter faileder HP-LaserJet-P3010-Series is idle. enabled since Thu 18 Jan 2018 04:09:59 PM CET
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P3010_Series?serial=HPSER1ALNR
error: Device not found
error: Communication status: Failed
--------------
| PERMISSION |
--------------
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'libjpeg-dev' 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-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'libtool' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'xsane' package is missing/incompatible
Total Errors: 11
Total Warnings: 0
Run 'hp-doctor' command to prompt and fix the issues.
Done.
Not sure what to make of this - I doubt *-dev
packages would have anything to do with USB connectivity problems or printer drivers ?!
Also try these hp-diagnose*
programs:
$ hp-diagnose_plugin
HP Linux Imaging and Printing System (ver. 3.14.3)
Diagnose Plugin Utility ver. 1.0
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.
Device Plugin is already installed
$ hp-diagnose_queues
HP Linux Imaging and Printing System (ver. 3.14.3)
AutoConfig Utility to check queues configuration ver. 1.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.
Got bus address: "unix:abstract=/tmp/dbus-sPV0rDmd6j,guid=668590b4a91f57f7d8a927125a60ad09"
Connected to accessibility bus at: "unix:abstract=/tmp/dbus-sPV0rDmd6j,guid=668590b4a91f57f7d8a927125a60ad09"
Registered DEC: true
Queue(s) configured correctly using HPLIP.
So no problems detected with hp-diagnose*
; I thought even about reinstalling hplip
; however:
$ sudo apt-get remove hplip
...
The following packages will be REMOVED:
hplip hplip-gui printer-driver-postscript-hp ubuntu-mate-desktop
...
... it wants to remove ubuntu-mate-desktop
, but unfortunately I'm using that one. I've tried sudo apt-get install --reinstall hplip
, no change.
So, I'm really at a loss now - how do I get this printer to print with Ubuntu 14.04 again?
EDIT: as per How can I install HP Laserjet P1102w on Ubuntu? I tried running hp-setup -i
(both with sudo
and without):
$ hp-setup -i
HP Linux Imaging and Printing System (ver. 3.14.3)
Printer/Fax Setup Utility ver. 9.0
...
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
2 par Parallel Port (LPT:)
Enter number 0...2 for connection type (q=quit, enter=usb*) ? [ENTER[
Using connection type: usb
error: No device selected/specified or that supports this functionality.
... all the while lsusb
shows the printer being connected?!
foo2zjs
(but that was not my problem, since for me,grep foo2zjs /var/log/syslog
returned nothing). It seems I had found some procedure that works for me - let's hope it lasts for more than a day... – sdaau Jan 18 '18 at 21:05