hplip 13.15.4 fails with Ubuntu 15.04 (HP laserjet 1018)

Bug #1448771 reported by icuras101
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

I have been using HPLIP for some time now with no problems, until upgrading to Ubuntu 15.04. I downloaded and installed the latest HPLIP 3.15.4 which lits Ubuntu 15.04 (Beta), but not 15.04 so possibly that is the reason it fails.
I

Ubuntu Version:15.04
Hp Printer : Hp Laserjet 1018
HPLIP Software version: 3.15.4

output of lsusb and hp-check -t:

lsusb
Bus 001 Device 007: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 001 Device 004: ID 0bc2:0503 Seagate RSS LLC ST3250824A [Barracuda 7200.9]
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
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 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
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
>>>>> hp-check -t
Saving output in log file: /home/ike/Downloads/hp-check.log

HP Linux Imaging and Printing System (ver. 3.15.4)
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.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 GNU/Linux
 Host: ivers101
 Proc: 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 GNU/Linux
 Distribution: ubuntu 15.04
 Bitness: 32 bit

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

HPLIP-Version: HPLIP 3.15.4
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.4

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

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

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_1018?serial=KP2MSZT"
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 = 04/26/2015 16:29:53
version = 3.15.4

 <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.4 OK -
 hpmudext IO-Extension REQUIRED - 3.15.4 OK -

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

 scanext Scan-SANE-Extension REQUIRED - 3.15.4 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.15.4 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 |
---------------------------------

lpstat
------
Type: Unknown
Device URI: No destinations added.

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

No errors or warnings.

Done.

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

This problem is due to mixed environments HPLIP runs on Ubuntu 15.04. Ubuntus HPLIP package contains python3 as the shebang line while having python2 as the default on system. This causes two different packages of HPLIP run in two different python environments.

This problem is addressed in HPLIP 3.15.4, which can be downloaded at http://hplipopensource.com/hplip-web/index.html.

Revision history for this message
icuras101 (ivers101) wrote :

Suma,
I re-ran the package, hplip-3.15.4 with the same result. The hplip environment does seem to be using only the one python and that is python2.7 and not a mixed environment.

I looked at the python scripts (with grep), and could not find any reference to python3. They are all using the system default, python 2.7... So, I do not think this is a duplicate bug report.

........... displays of the python link and shebang in the python scripts.

 ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 Mar 17 08:55 /usr/bin/python -> python2.7

ke@ivers101:~/Downloads/hplip-3.15.4$ grep "#!" *py
align.py:#!/usr/bin/env python
check-plugin.py:#!/usr/bin/env python
check.py:#!/usr/bin/env python
clean.py:#!/usr/bin/env python
colorcal.py:#!/usr/bin/env python
config_usb_printer.py:#!/usr/bin/env python
dat2drv.py:#!/usr/bin/env python
devicesettings.py:#!/usr/bin/env python
diagnose_plugin.py:#!/usr/bin/env python
diagnose_queues.py:#!/usr/bin/env python
doctor.py:#!/usr/bin/python
fab.py:#!/usr/bin/env python
faxsetup.py:#!/usr/bin/env python
firmware.py:#!/usr/bin/env python
hpdio.py:#!/usr/bin/env python
hpssd.py:#!/usr/bin/env python
info.py:#!/usr/bin/env python
__init__.py:#!/usr/bin/env python
install.py:#!/usr/bin/env python
levels.py:#!/usr/bin/env python
linefeedcal.py:#!/usr/bin/env python
logcapture.py:#!/usr/bin/python
makecopies.py:#!/usr/bin/env python
makeuri.py:#!/usr/bin/env python
pkservice.py:#!/usr/bin/env python
plugin.py:#!/usr/bin/env python
pqdiag.py:#!/usr/bin/env python
print.py:#!/usr/bin/env python
printsettings.py:#!/usr/bin/env python
probe.py:#!/usr/bin/env python
query.py:#!/usr/bin/env python
scan.py:#!/usr/bin/env python
sendfax.py:#!/usr/bin/env python
setup.py:#!/usr/bin/env python
systray.py:#!/usr/bin/env python
testpage.py:#!/usr/bin/env python
timedate.py:#!/usr/bin/env python
toolbox.py:#!/usr/bin/env python
uninstall.py:#!/usr/bin/python
unload.py:#!/usr/bin/env python
upgrade.py:#!/usr/bin/python
wificonfig.py:#!/usr/bin/env python

Revision history for this message
icuras101 (ivers101) wrote :

Sorry but I left out the error message I am getting. IT is not finding my USB device and this device was always found prior to upgrade to 15.04, and does also appear (as noted in my data above) when I run lsusb.

ike@ivers101:~$ hp-setup --auto 001:007

HP Linux Imaging and Printing System (ver. 3.15.4)
Printer/Fax Setup Utility ver. 9.0

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.

Searching for device...
error: Device not found. Please make sure your printer is properly connected and powered-on.

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hello,

If you have tried installing latest HPLIP from http://hplipopensource.com/hplip-web/index.html and still are seeing the problem, please provide me the output of following commands:

lsusb -v
hp-setup- g
hp-doctor -g
Contents of the file /var/log/syslog

Regards,
Suma

Revision history for this message
icuras101 (ivers101) wrote :
Download full text (191.7 KiB)

lsusb -v
__________________________
01:~$ lsusb -v

Bus 001 Device 008: ID 0bc2:0503 Seagate RSS LLC ST3250824A [Barracuda 7200.9]
Couldn't open device, some information will be missing
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0bc2 Seagate RSS LLC
  idProduct 0x0503 ST3250824A [Barracuda 7200.9]
  bcdDevice 2.40
  iManufacturer 42
  iProduct 57
  iSerial 83
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 39
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk-Only
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 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 0x86 EP 6 IN
        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 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0004 1x 4 bytes
        bInterval 10

Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 1 Single TT
  bMaxPacketSize0 64
  idVendor 0x05e3 Genesys Logic, Inc.
  idProduct 0x0606 USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
  bcdDevice 7.02
  iManufacturer 0
  iProduct 1
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
  ...

Revision history for this message
icuras101 (ivers101) wrote :
Download full text (20.7 KiB)

I am replacing the lsusb -v output with this - using sudo to get complete information:

------------------------------------------------------

Bus 001 Device 009: 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

Bus 001 Device 008: ID 0bc2:0503 Seagate RSS LLC ST3250824A [Barracuda 7200.9]
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0bc2 Seagate RSS LLC
  idProduct 0x0503 ST3250824A [Barracuda 7200.9]
  bcdDevice 2.40
  iManufacturer 42 Jabil Circuit
  iProduct 57 Seagate External Drive
  iSerial 83 SG061209362
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 39
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNum...

Revision history for this message
icuras101 (ivers101) wrote :

This bug (1448771 - Failure to find pringer device using Hplip-3.15.4) was identified as a duplicate of bug 1422004). How do I get that changed? Should I just re-enter this bug, and possibly be a bit more clear next time identifying my problem?

Ike

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hello,

I have unmarked the Duplicate flag for this bug.

I see that even lsusb is showing some errors in completely reading the printer details.

Please attach the remaining logs requested.

Regards,
Suma

Revision history for this message
Jez (d-jeremy) wrote :
Download full text (3.8 KiB)

I just just done an upgrade from 14.10 to 15.04 and I now have the same problem with my LaserJet 1018. It no longer works. I can no longer get it to work even after upgrading to hplip 3.15.4.

--------------------------------------------------------------------------------------------------------------------------------------------------

OUTPUT FROM lsusb -v

$ lsusb -v

Bus 001 Device 002: 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

--------------------------------------------------------------------------------------------------------------------------------------------------

OUTPUT FROM hp-setup -g -i

$ hp-setup -g -i

HP Linux Imaging and Printing System (ver. 3.15.4)
Printer/Fax Setup Utility ver. 9.0

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-setup[9332]: debug: param=
hp-setup[9332]: debug: selected_device_name=None
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  ...

Read more...

Revision history for this message
Jez (d-jeremy) wrote :

End part of hp-doctor -g -i

------------------

Checking Permissions....
Permissions are correct.

Checking for Configured Queues....
hp-doctor[9887]: debug: lpstat: No destinations added.

No Queue added
hp-doctor[9887]: debug: []
hp-doctor[9887]: debug: HPCups installation=1 HPIJS installation =0

hp-doctor[9887]: debug: Bus 001 Device 002: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
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

warning: No Queue(s) configured.

Checking for HP Properitery Plugin's....
No plug-in printers are configured.
hp-doctor[9887]: debug: Bus 001 Device 002: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
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

Diagnose completed...

More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Please run the following command. If the problem persists after running the command, send me the output of the command and /var/log/syslog.

"hp-config_usb_printer -g <Bus Number>:<Device Number> "

Replace the Bus Number and Device Number with the numbers displayed by lsusb.

For example, from the lsusb output you posted above the Bus Number is 001 and Device Number is 002. The numbers are contained in the first line of lsusb -v output.

            "Bus 001 Device 002: ID 03f0:4117 Hewlett-Packard LaserJet 1018"

So the command for above numbers becomes,
             "hp-config_usb_printer -g 001:002"

This printer requires a firmware plugin loaded by the driver. You should hear the printer making a noise when the above command is run.

Revision history for this message
Jez (d-jeremy) wrote :
Download full text (6.0 KiB)

Hello,

Thank you for the reply. Here are the outputs:

$ lsusb
Bus 001 Device 002: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
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

$ hp-config_usb_printer -i -g 001:002
hp-config_usb_printer[2893]: debug: param=001:002
error: This is not a valid device

syslog:
May 6 08:46:00 liara python: io/hpmud/musb.c 2165: [2893] hpmud_make_usb_uri() bus=001 dev=002
May 6 08:46:05 liara python: io/hpmud/musb.c 152: unable get_string_descriptor -7: Resource temporarily unavailable
May 6 08:46:05 liara python: io/hpmud/musb.c 2212: invalid product id string ret=-7
May 6 08:46:10 liara python: io/hpmud/musb.c 152: unable get_string_descriptor -7: Resource temporarily unavailable
May 6 08:46:10 liara python: io/hpmud/musb.c 2217: invalid serial id string ret=-7
May 6 08:46:15 liara python: io/hpmud/musb.c 152: unable get_string_descriptor -7: Resource temporarily unavailable
May 6 08:46:15 liara python: io/hpmud/musb.c 2084: invalid product id string ret=-7
May 6 08:46:20 liara python: io/hpmud/musb.c 152: unable get_string_descriptor -7: Resource temporarily unavailable
May 6 08:46:20 liara python: io/hpmud/musb.c 2089: invalid serial id string ret=-7
May 6 08:46:25 liara python: io/hpmud/musb.c 152: unable get_string_descriptor -7: Resource temporarily unavailable
May 6 08:46:25 liara python: io/hpmud/musb.c 2094: invalid manufacturer string ret=-7
May 6 08:46:25 liara hp-config_usb_printer: hp-config_usb_printer[2893]: error: This is not a valid device

However, I noticed two things. When unplugging the printer:

May 6 08:47:04 liara kernel: [ 238.323889] usb 1-2: USB disconnect, device number 2
May 6 08:47:04 liara kernel: [ 238.325527] usblp0: removed
May 6 08:47:04 liara systemd-udevd[219]: error opening USB device 'descriptors' file
May 6 08:47:04 liara systemd[1]: Unit printer.target is not needed anymore. Stopping.
May 6 08:47:04 liara systemd[1]: Stopped target Printer.
May 6 08:47:04 liara systemd[1]: Stopping Printer.

When plugging the printer back in again after the system has booted:

May 6 09:03:54 liara kernel: [ 1248.508384] usb 1-2.3: new high-speed USB device number 10 using ehci-pci
May 6 09:04:09 liara kernel: [ 1263.580418] usb 1-2.3: device descriptor read/64, error -110
May 6 09:04:25 liara kernel: [ 1278.756325] usb 1-2.3: device descriptor read/64, error -110
May 6 09:04:25 liara kernel: [ 1278.932417] usb 1-2.3: new high-speed USB device number 11 using ehci-pci
May 6 09:04:40 liara kernel: [ 1294.004337] usb 1-2.3: device descriptor read/64, error -110
May 6 09:04:55 liara kernel: [ 1309.180362] usb 1-2.3: device descriptor read/64, error -110
May 6 09:04:55 liara kernel: [ 1309.356331] usb 1-2.3: new high-speed USB device number 12 using ehci-pci
May 6 09:05:00 liara kernel: [ 1314.376304] usb 1-2.3: device descriptor read/8, error -110
May 6 09:05:05 liara kernel: [ 1319.496268] usb 1-2.3: device descriptor read/8, error -110
May 6 09:05:06 liara kernel:...

Read more...

Revision history for this message
icuras101 (ivers101) wrote :

Sorry for taking so long to respond.

1. I have my Printer running on another linux system, my Laptop, with no problems. Running Mint 17 and installed printer with HPLIP 3.15.4
2. In response to your request :
>Please run the following command. If the problem persists after running the command, send me the output of the >command and /var/log/syslog.

>"hp-config_usb_printer -g <Bus Number>:<Device Number> "
I get the same error
$lsusb
Bus 001 Device 004: ID 05e3:0741 Genesys Logic, Inc.
Bus 001 Device 006: ID 03f0:4117 Hewlett-Packard LaserJet 1018

$ sudo hp-config_usb_printer -g 001:006
hp-config_usb_printer[3887]: debug: param=001:006
error: This is not a valid device

Revision history for this message
guru (gururajatantry) wrote :

I too had problems with configuring my HP Laserjet M1136 MFP printer on ubuntu 15.04. But then I downloaded the latest version of hplip i.e 3.15.4 and installed it. Now the printer works. http://hplipopensource.com/hplip-web/index.html

Revision history for this message
icuras101 (ivers101) wrote :

I realize this bug apparently is only affecting people with the HP-Laserjet-1018, and that it is not therefor a big priority to fix. It also however probably has a simple solution since apparently all other Hp printers are supported.
I have done some programming in my time, is it possible you could point me at code that might be causing this problem, and I would give it a look to see if I can locate the trouble?

Revision history for this message
Aleksey Tomin (alxt) wrote :

Problem NO exists in hplip 3.15.9 and kubuntu 15.04
Problem RETURNS after auto-update 15.04

Revision history for this message
jpconver (jpconver) wrote :

I'm using ubuntu 15.10 and I have a HP Laserjet 1018.

I was experiencing the same problem but discovered that if I executed the setup with sudo "sudo hp-setup" the program recognizes my printer and I was able to install it but when at some point it wanted to print a test page it failed.
So again I executed "sudo hp-testpage" and it worked.

So it seemed that the problem was related to a permissions problem, so I executed: "sudo chown jpconver:jpconver /dev/bus/usb/001/005" and after that every hp command worked without sudo :)

I don't know if there's a better workaround to this problem but at least this one worked for me :)

Revision history for this message
jpconver (jpconver) wrote :

Sorry for the spam!
It turns out that adding my user to the lp group fixes the problem without the need of the "sudo chown jpconver:jpconver /dev/bus/usb/001/005"

So the steps I followed (for my user jpconver)
a) sudo adduser jpconver lp
b) logout and login
c) run hp-setup -i

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.