scanner doesn't work after linux update to 16.04

Bug #1576800 reported by Domenico
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

hplip ver 3.16.3 can't recognize my hp ColorLaserJet Pro MFP m177fw scanner after kubuntu update to 16.04.
Can't work also if I connect the printer with usb cable.

Printer works, just the scanner doesn't work anymore.

I tried also to uninstall hplip and reinstall it, but always the same the printer works but not the scanner. This is not an hardware issue because scanner connected to another system like windows or mac works, its a software issue caused after Kubuntu os update from 15 to 16 system, maybe an update of HLIP needed?

I attached the check-it log

Thanks

Revision history for this message
Domenico (domenico-liberta) wrote :
Revision history for this message
Joseph Florio (joeinslw) wrote : Re: [Bug 1576800] [NEW] scanner doesn't work after linux update to 16.04

*Why am I not surprised? It seems that Linux doesn't care about these
bugs, nobody seems to be working on them, or to get HLIP to work,, it's
been months with Mint, or Ubuntu, either Dell or HP Printers do not work
depending on which one you use.*

On Fri, Apr 29, 2016 at 1:39 PM, Domenico <email address hidden>
wrote:

> Public bug reported:
>
> hplip ver 3.16.3 can't recognize my hp ColorLaserJet Pro MFP m177fw
> scanner after kubuntu update to 16.04.
> Can't work also if I connect the printer with usb cable.
>
> Printer works, just the scanner doesn't work anymore.
>
> I tried also to uninstall hplip and reinstall it, but always the same
> the printer works but not the scanner. This is not an hardware issue
> because scanner connected to another system like windows or mac works,
> its a software issue caused after Kubuntu os update from 15 to 16
> system, maybe an update of HLIP needed?
>
> I attached the check-it log
>
> Thanks
>
> ** Affects: hplip
> Importance: Undecided
> Status: New
>
> ** Attachment added: "hp-check.log"
>
> https://bugs.launchpad.net/bugs/1576800/+attachment/4651578/+files/hp-check.log
>
> --
> You received this bug notification because you are subscribed to HPLIP.
> Matching subscriptions: joeinslw
> https://bugs.launchpad.net/bugs/1576800
>
> Title:
> scanner doesn't work after linux update to 16.04
>
> Status in HPLIP:
> New
>
> Bug description:
> hplip ver 3.16.3 can't recognize my hp ColorLaserJet Pro MFP m177fw
> scanner after kubuntu update to 16.04.
> Can't work also if I connect the printer with usb cable.
>
> Printer works, just the scanner doesn't work anymore.
>
> I tried also to uninstall hplip and reinstall it, but always the same
> the printer works but not the scanner. This is not an hardware issue
> because scanner connected to another system like windows or mac works,
> its a software issue caused after Kubuntu os update from 15 to 16
> system, maybe an update of HLIP needed?
>
> I attached the check-it log
>
> Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/hplip/+bug/1576800/+subscriptions
>

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Sorry for the delay we will get back to you on this issue. Let us analyze it

Revision history for this message
Graziano (graziano-giuliani-gmail) wrote :

Can confirm this regression with 16.04 also with M277dw Color LaserJet Pro.

Revision history for this message
Graziano (graziano-giuliani-gmail) wrote :

Followup, exerpt from the syslog:

May 1 18:45:51 myhost /hp-scan: io/hpmud/pp.c 627: unable to read device-id ret=-1
May 1 18:45:52 myhost dbus[768]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
May 1 18:45:56 myhost /hp-scan: common/utils.c 188: unable to load library libm.so: /usr/lib/x86_64-linux-gnu/libm.so: invalid ELF header
May 1 18:45:56 myhost /hp-scan: io/hpmud/hpmud.c 683: invalid channel_open state
May 1 18:45:56 myhost /hp-scan: http.c 300: unable to open HP-SOAP-SCAN channel
May 1 18:45:56 myhost /hp-scan: bb_soapht.c 661: unable to open http connection hp:/net/HP_Color_LaserJet_MFP_M277dw?hostname=NPIC580E2
May 1 18:45:56 myhost /hp-scan: bb_soapht.c 793: unable to get_scanner_elements: uri=hp:/net/HP_Color_LaserJet_MFP_M277dw?hostname=NPIC580E2
May 1 18:45:56 myhost /hp-scan: hp-scan[3710]: error: SANE: Error during device I/O (code=9)

Revision history for this message
Graziano (graziano-giuliani-gmail) wrote :

Downloading hplip ver 3.16.3 from http://hplipopensource.com and installing the original sources makes the trick and the scan works. Packaging error in Ubuntu 16.04 ?

Revision history for this message
Johannes Carlsson (johannes-car) wrote :

Seems like something went wrong when creating the /usr/lib/x86_64-linux-gnu/libm.so file:

$ cat /usr/lib/x86_64-linux-gnu/libm.so
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib/x86_64-linux-gnu/libm.so.6 AS_NEEDED ( /usr/lib/x86_64-linux-gnu/libmvec_nonshared.a /lib/x86_64-linux-gnu/libmvec.so.1 ) )

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :

I seem to have worked around this issue in 3.16.11 by deleting `~/.hplip` and reinstalling `hplip` and the proprietary plugin using the `.run` file from the website.

Revision history for this message
Karlchen (karlchen) wrote :

Have just spent hours trying to trouble-shoote the same problem on Linux Mint 18.1 32-bit xfce, which is based on Ubuntu 16.04. HPLIP version 3.17.4, downloaded from the HP website. Printer HP Color LaserJet MFP M277dw.
Have decided to purge HPLIP 3.17.4 and give 3.16.11 a try.
(On Ubuntu 12.04 and Ubuntu 14.04 scanning works perfectly using HPLIP 3.16.5, downloaded from the HP website. Smells like a regression introduced by some change in Ubuntu 16.04 ... or by HP?)

Revision history for this message
Karlchen (karlchen) wrote :
Download full text (3.9 KiB)

Same problem using HPLIP 3.16.11 as with 3.17.4.
Setup is satisfied and reports no error. hp-check is satisified, too, and does not report any error. Cf. attached logfile.
Networked MFC device / scanner is detected:
device `hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26' is a Hewlett-Packard HP_Color_LaserJet_MFP_M277dw all-in-one

But as soon as xsane tries to access it:

$ xsane -V hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26

May 24 01:39:34 paulchen xsane: bb_soapht.c 661: unable to open http connection hp:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26
May 24 01:39:34 paulchen xsane: bb_soapht.c 793: unable to get_scanner_elements: uri=hp:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26

or using simple-scan:

$ $ simple-scan -d hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26
[+0,01s] DEBUG: simple-scan.vala:674: Starting Simple Scan 3.20.0, PID=5636
[+0,03s] DEBUG: Connecting to session manager
[+0,56s] DEBUG: ui.vala:2032: Loading state from /home/karl/.cache/simple-scan/state
[+0,57s] DEBUG: ui.vala:1995: Restoring window to 981x532 pixels
[+0,57s] DEBUG: autosave-manager.vala:64: Loading autosave information
[+0,57s] DEBUG: autosave-manager.vala:259: Waiting to autosave...
[+0,60s] CRITICAL: gtk_event_controller_reset: assertion 'GTK_IS_EVENT_CONTROLLER (controller)' failed
[+1,18s] DEBUG: autosave-manager.vala:281: Autosaving book information
[+1,19s] DEBUG: scanner.vala:1447: sane_init () -> SANE_STATUS_GOOD
[+1,19s] DEBUG: scanner.vala:1453: SANE version 1.0.25
[+1,19s] DEBUG: scanner.vala:1514: Requesting redetection of scan devices
[+1,19s] DEBUG: scanner.vala:803: Processing request
[+1,32s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+1,53s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+4,13s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+7,13s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD
[+7,13s] DEBUG: scanner.vala:350: Device: name="hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26" vendor="Hewlett-Packard" model="HP_Color_LaserJet_MFP_M277dw" type="all-in-one"
[+8,53s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+8,58s] DEBUG: simple-scan.vala:404: Requesting scan at 300 dpi from device 'hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26'
[+8,58s] DEBUG: scanner.vala:1560: Scanner.scan ("hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=ScanType.SINGLE, paper_width=0, paper_height=0, brightness=0, contrast=0)
[+8,58s] DEBUG: scanner.vala:803: Processing request
[+8,66s] DEBUG: scanner.vala:864: sane_open ("hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.178.26") -> SANE_STATUS_IO_ERROR
[+8,66s] WARNING: scanner.vala:868: Unable to get open device: Error during device I/O
[+9,07s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+9,64s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+12,33s] DEBUG: ui.vala:2124: Saving state to /home/karl/.cache/simple-scan/state
[+20,02s] DEBUG: ui.vala:2124: Saving state to /home/kar...

Read more...

Revision history for this message
Karlchen (karlchen) wrote :

hp-check.log:
hp-check is quite happy with with what it has installed.
Nonetheless.

Revision history for this message
Karlchen (karlchen) wrote :

Several failed attempts and a full day later, let me start by freely quoting from a well-known Simon & Garfunkel song:

The problem is all inside my head, I said to me.
The answer is easy, if I take it logically.
There must be a right way to install my driver.

Simply put and less poetic:
I have solved my problem of
+ installing the genuine HPLIP 3.16.11 software
+ on Linux Mint 18.1 32-bit xfce (based on Ubuntu 16.04)
+ not only making my networked printer HP Color LaserJet MFP M277dw
  work as a printer (which had worked all the time)
+ but also enabling my Mint 18.1 to access the networked scanner inside the printer.

Revision history for this message
Karlchen (karlchen) wrote :

Foreword:
---------
I cannot tell whether printing and scanning on the network attached MFP device would have worked out of the box using the repackaged HPLIP software 3.16.3 which comes pre-installed on Ubuntu 16.04.
I have not tried, because the HP website had told me that for full support of HP Color LaserJet MFP M277dw I needed HPLIP 3.16.5 or above.

Root cause:
-----------
The hplip-installer which comes with the genuine HPLIP software tries to uninstall any pre-installed HPLIP software on the system, which it finds, before starting to install iteself, ... and fails to do so!
In my case this was the root cause why after installing HPLIP 3.16.11 printing worked, but scanning failed.
HPLIP 3.16.3 had not been uninstalled completely.
The reason for this failure seem to be 2 things:
+ The HLPIP 3.16.11 installer had not identified the existing HPLIP software packages
  properly and therefore not uninstalled all hplip packages which Ubuntu pre-installs.
+ The HPLIP 3.16.11 installer had completely ignored the separate package named
  libsane-hpaio, which enables access to the scanner.

Mixed HPLIP software packages:
------------------------------
As a consequence after installing HPLIP 3.16.11, there existed a mixture of HPLIP 3.16.3 and 3.16.11 software on the system.
And most important, the libsane-hpaio library was present in 2 different places.
And guess what: the outdated libsane-hpaio was found instead of the recent libsane-hpaio.
This was what prevented the system from accessing and using the networked scanner.

Details:
--------
The Ubuntu provided libsane-hpaio 3.16.3 had been installed in the directory
+ /usr/lib/i386-linux-gnu/sane (32-bit system)
The genuine HP libsane-hpaio 3.16.11 had been installed in the directory
+ /usr/lib/sane
and was ignored.

Solution:
---------
Before re-installing HPLIP 3.16.11 from scratch, used Synaptic to make sure the following packages had been uninstalled:
+ libsane-hpaio
+ hplip-data, hplip-doc, hplip-gui, hplip
(all version 3.16.3+repack0-1)

Next uninstalled HPLIP 3.16.11 completely by executing "sudo /usr/bin/hp-uninstall"

Next re-installed HPLIP 3.16.11 by executing "hplip-install" in directory ~/Downloads/HPLIP/hplip-3.16.11 one more time.
hplip-install will later on offer to execute hp-setup.
hp-setup will permit to download and install the needed HP plugin, which in turn also reinstalls libsane-hpaio.

Finally tested access to the scanner from inside the "HP Device Manager" GUI and from simple-scan.

Result:
-------
Printing and scanning finally work as expected.

Revision history for this message
Karlchen (karlchen) wrote :

Hi, folks.

Once more 24 hours later, I can report and confirm that printing and scanning works as expected on my networked device "HP Color LaserJet MFP M277dw"
+ on genuine Ubuntu 16.04.2 64-bit Unity
+ using the HPLIP 3.16.3 software which comes with Ubuntu 16.04

To be honest, the crucial step on how to make scanning work has been got from the German Ubuntuusers.de WIKI.
They mention that in a separate step the HP plugin has to be got and installed using "sudo /usr/bin/hp-plugin-ubuntu", instead of doing so from inside the HP Toolbox GUI (which will fail)
(cf. here: https://wiki.ubuntuusers.de/HPLIP/#Scannen)

OK. So here are the steps which I have followed:
+ inside Synaptic made sure that the following HPLIP 3.16.3 packages have been installed
  (actually added those that had not been pre-installed):
  hplip, hplip-data, hplip-doc, hplip-gui
+ inside Synaptic made sure that libsane-hpaio 3.16.3 had been pre-installed
+ Executed: "sudo /usr/bin/hp-plugin-ubuntu" in order to download and install the HP plugin
  Note: this will open an xterm window.
        At the end of the installation there were 2 lines saying "Done."
        The xterm window had to be closed manually.
+ Only now launched the "HPLIP Toolbox" from Dash.
  Completed the HP-Setup.
  (The step to download and install the HP-plugin did not appear, because HP-Setup
   detected the installed HP-plugin software)
+ Finally, in the HPLIP Toolbox sent a test page to the printer.
  Put the printed out test page into the ADF.
  Selected Scan in the HPLIP Toolobox.
  Simple Scan would open.
  Selected the ADF as my source and confirmed to scan.
  Worked as expected.

Summary:
-----------
The HPLIP software which is available in the Ubuntu repos for 16.04 can be used to setup an HP MFP printer/scanner like e.g. my "HP Color LaserJet MFP M277dw" and get it to print and scan.

The tricky detail is that the setup steps are a little bit different from what may be found on the HP webpage http://hplipopensource.com/hplip-web/install/manual/hp_setup.html
Namely hp-plugin-ubuntu should have been completed before launching hp-setup.

Conclusion:
-------------
As has been verified HPLIP 3.16.3 will recognize printer as well as scanner, provided the setup steps have been done correctly.
Hence the reported issue "scanner doesn't work after linux update to 16.04" must be considered a handling issue, rather than a software bug.
In this case there is no software bug.

Personally, I consider bug #1576800 solved. No bug involved. Handling problem.

Revision history for this message
mbrennwa (mbrennwa) wrote :

<<They mention that in a separate step the HP plugin has to be got and installed using "sudo /usr/bin/hp-plugin-ubuntu", instead of doing so from inside the HP Toolbox GUI (which will fail)>>

This solved the issue for me on Ubuntu 19.04. THANK YOU, THANK YOU, THANK YOU!

This looks like a packaging error to me. If after installing the DEB package a command needs to be run to make the software work, this should go to the postinst part of the DEB package in order to make sure the command is executed at install.

Revision history for this message
mbrennwa (mbrennwa) wrote :

Just wanted to say that this issue also exists in Debian Bullseye. The command to install the plugin(s?) is "sudo /usr/bin/hp-plugin".

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.