cannot print to hp 1018 printer in ubuntu 15.04

Asked by Edwin Davidson

am using ubuntu 15.04. have a hp 1018 printer connected via a usb cable. have hplip 3.15.6 installed. printing worked fine up to installing 15.04. what can be done to restore printing ?

this is output from lsusb command:

edwin@edwin-ThinkPad-R52:~$ lsusb
Bus 001 Device 023: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 008: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

this is output from hp-check -t command:

edwin@edwin-ThinkPad-R52:~$ hp-check -t
Saving output in log file: /home/edwin/hp-check.log

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

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

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

 Kernel: 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:14:22 UTC 2015 GNU/Linux
 Host: edwin-ThinkPad-R52
 Proc: 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:14:22 UTC 2015 GNU/Linux
 Distribution: ubuntu 15.04
 Bitness: 32 bit

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

HPLIP-Version: HPLIP 3.15.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 15.04 version

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

[hplip]
version=3.15.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.15.6
html=/usr/share/doc/hplip-3.15.6
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.15.6
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:
[plugin]
installed = 1
eula = 1
version = 3.15.6

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1435792604
pending_upgrade_time = 0

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri =
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 2015-07-01 21:14:33
version = 3.15.6

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

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.15 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.24 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.998 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.0.2 OK 'CUPS Scheduler is running'
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.16.1 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
 dbus DBus - Message bus system REQUIRED - 1.8.12 OK -

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

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.1 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.1.44 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.3 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.0.2 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.2 OK -
 sane-devel SANE - Scanning library development files REQUIRED - 1.0.24 OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.9 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.11.3 OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.21 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.9 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.0.2 OK -
 sane SANE - Scanning library REQUIRED - 1.0.24 OK -

---------------
| COMPILEDEP |
---------------

 libtool libtool - Library building support services REQUIRED - 2.4.2 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 4.9.2 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.0 OK -

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

 cupsext CUPS-Extension REQUIRED - 3.15.6 OK -
 hpmudext IO-Extension REQUIRED - 3.15.6 OK -

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

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

-----------------------
| Other Dependencies |
-----------------------

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

No Scanner found.

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

No devices found.

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

HP_LaserJet_1018
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1018?serial=KP2YYWY
PPD: /etc/cups/ppd/HP_LaserJet_1018.ppd
PPD Description: HP LaserJet 1018, hpcups 3.15.2, requires proprietary plugin
Printer status: printer HP_LaserJet_1018 is idle. enabled since Wed 01 Jul 2015 08:36:2Rendering completed
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_1018?serial=KP2YYWY
error: Device not found
error: Communication status: Failed

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

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

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 1
Total Warnings: 0

Done.
edwin@edwin-ThinkPad-R52:~$

Question information

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

Can you provide the output of 'lsusb -d 03f0:4117 -v' ?

Revision history for this message
Edwin Davidson (ak429) said :
#2

edwin@edwin-ThinkPad-R52:~$ lsusb -d 03f0:4117 -v

Bus 001 Device 003: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x4117 LaserJet 1018
  bcdDevice 1.00
  iManufacturer 1 (error)
  iProduct 2 (error)
  iSerial 3 (error)
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 98mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 7 Printer
      bInterfaceSubClass 1 Printer
      bInterfaceProtocol 2 Bidirectional
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Status: 0x0001
  Self Powered
edwin@edwin-ThinkPad-R52:~$

Revision history for this message
Edwin Davidson (ak429) said :
#3

Hello,

Was the output of the 'lsusb -d 03f0:4117 -v' command helpful ?

Edwin

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

Hi Edwin,

Sorry for our delay in response.
We are investigating this issue as this is reported by several other users too.

We are trying to have the setup here and reproduce the same.

Can you help us by providing the output of
1. sudo /usr/lib/cups/backend/usb
2. ls -l /dev/bus/usb/001/003

Run command hp-firmware -i -g and let us know its terminal output here.

Thanks,
Goutam

Revision history for this message
Edwin Davidson (ak429) said :
#5

see my 3 sets of postings below for these commands.

thank you.
Edwin

edwin@edwin-ThinkPad-R52:~$ sudo /usr/lib/cups/backend/usb
[sudo] password for edwin:
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 114 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=6
DEBUG2: Printer found with device ID: Device URI: usb://Unknown/Printer
direct usb://Unknown/Printer "Unknown" "Unknown" "" ""
edwin@edwin-ThinkPad-R52:~$

edwin@edwin-ThinkPad-R52:~$ ls -l /dev/bus/usb/001/003
crw-rw-r--+ 1 root lp 189, 2 Jul 9 20:23 /dev/bus/usb/001/003
edwin@edwin-ThinkPad-R52:~$

edwin@edwin-ThinkPad-R52:~$ hp-firmware -i -g

HP Linux Imaging and Printing System (ver. 3.15.6)
Firmware Download Utility ver. 2.4

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

hp-firmware[1993]: debug: getDeviceUri(None, None, ('hp',), {'fw-download': (<built-in function gt>, 0)}, , True)
hp-firmware[1993]: debug: Mode=0
hp-firmware[1993]: debug: Cache miss: hp_laserjet_1018
hp-firmware[1993]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-firmware[1993]: debug: Searching for section [hp_laserjet_1018] in file /usr/share/hplip/data/models/models.dat
hp-firmware[1993]: debug: Found section [hp_laserjet_1018] in file /usr/share/hplip/data/models/models.dat
hp-firmware[1993]: debug: {'hp:/usb/HP_LaserJet_1018?serial=KP2YYWY': ['HP_LaserJet_1018']}
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_1018?serial=KP2YYWY
ahp-firmware[1993]: debug: Exception: 2 (Device not found)
error: Error opening device (Device not found). Exiting.

Revision history for this message
Edwin Davidson (ak429) said :
#6

Hello,

Was my July 9 posting helpful ? Has any progress been made on this issue of my not being able to print to my HP 1018 printer ?

Thank you.
Edwin

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

yes.
Thanks for the logs.

We are trying to analyse the issue could be because firmware file is not getting flashed to printer correctly.
If you can you run the command 'sudo hp-firmware -y3 -s 002:008 -g' and provide its output here it will be of great help to us.

Thanks,
Goutam

Revision history for this message
Edwin Davidson (ak429) said :
#8

Hello,

here is the output of the 'sudo hp-firmware -y3 -s 002:008 -g' command:

edwin@edwin-ThinkPad-R52:~$ sudo hp-firmware -y3 -s 002:008 -g
hp-firmware[1814]: debug: USB bus ID: 002
hp-firmware[1814]: debug: USB device ID: 008
hp-firmware[1814]: debug: USB bus node: 002:008
error: Invalid USB Device ID or USB bus ID. No device found.

Thank you.
Edwin

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

Sorry Edwin i guess i gave a wrong command input.
Please run the command 'sudo hp-firmware -y3 -s 001:003 -g' and provide its output.
I am guessing the device is still connected to same bus and device id. If it is changed then change the command accordingly.
(Bus 001 Device 003: ID 03f0:4117 Hewlett-Packard LaserJet 1018)

After running the above command provide us the output of ' lsusb -d 03f0:4117 -v ' again

Sorry for the inconvenience.

Thanks,
goutam

Revision history for this message
Edwin Davidson (ak429) said :
#10

Hello,

Here is the output of these 2 commands.

Thank you again.
Edwin

edwin@edwin-ThinkPad-R52:~$ sudo hp-firmware -y3 -s 001:003 -g
[sudo] password for edwin:
hp-firmware[1705]: debug: USB bus ID: 001
hp-firmware[1705]: debug: USB device ID: 003
hp-firmware[1705]: debug: USB bus node: 001:003
error: Invalid USB Device ID or USB bus ID. No device found.

edwin@edwin-ThinkPad-R52:~$ lsusb -d 03f0:4117 -v

Bus 001 Device 003: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x4117 LaserJet 1018
  bcdDevice 1.00
  iManufacturer 1 (error)
  iProduct 2 (error)
  iSerial 3 (error)
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 98mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 7 Printer
      bInterfaceSubClass 1 Printer
      bInterfaceProtocol 2 Bidirectional
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Status: 0x0001
  Self Powered
edwin@edwin-ThinkPad-R52:~$

Revision history for this message
Edwin Davidson (ak429) said :
#11

Hello again,

Has any progress been made on this ticket ?

Edwin

Can you help with this problem?

Provide an answer of your own, or ask Edwin Davidson for more information if necessary.

To post a message you must log in.